Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 118.3 kB / 19.17 MB, free: 3.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 205.7 kB / 22.12 MB, free: 0.9609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 207.6 MB / 232.5 MB, free: 3.949 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001681, allocations: 47.94 kB / 343 MB, free: 9.996 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09517/0.09685, allocations: 49.13 MB / 392.1 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01389/0.1107, allocations: 13.4 MB / 405.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02317/0.1339, allocations: 19.39 MB / 424.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00267/0.1366, allocations: 197.8 kB / 425.1 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003314/0.1399, allocations: 1.089 MB / 426.2 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008061/0.148, allocations: 2.254 MB / 428.4 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005541/0.1535, allocations: 1.381 MB / 429.8 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01107/0.1646, allocations: 6.25 MB / 436.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000713/0.1653, allocations: 248.5 kB / 436.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001749/0.167, allocations: 1.007 MB / 437.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001332/0.1684, allocations: 1.032 MB / 438.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001889/0.1686, allocations: 75.94 kB / 438.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003797/0.1724, allocations: 1.156 MB / 439.6 MB, free: 9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003755/0.1727, allocations: 309.7 kB / 439.9 MB, free: 8.695 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001613/0.1743, allocations: 1.304 MB / 441.2 MB, free: 7.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005549/0.1799, allocations: 3.675 MB / 444.9 MB, free: 3.691 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1799, allocations: 8 kB / 444.9 MB, free: 3.684 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1799, allocations: 0 / 444.9 MB, free: 3.684 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.05e-05/0.18, allocations: 0 / 444.9 MB, free: 3.684 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005886/0.1858, allocations: 3.649 MB / 448.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.1859, allocations: 12.03 kB / 448.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.118e-05/0.1859, allocations: 13 kB / 448.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.1861, allocations: 94.45 kB / 448.6 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005075/0.1866, allocations: 393.6 kB / 449 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003583/0.1902, allocations: 2.551 MB / 451.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.1902, allocations: 36.92 kB / 451.6 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.1903, allocations: 55.95 kB / 451.7 MB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.1917, allocations: 0.703 MB / 452.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.1917, allocations: 0 / 452.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.989e-05/0.1918, allocations: 19.98 kB / 452.4 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.1918, allocations: 19.98 kB / 452.4 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.1934, allocations: 0.7929 MB / 453.2 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004841/0.1982, allocations: 2.892 MB / 456.1 MB, free: 8.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.1995, allocations: 0.6467 MB / 456.7 MB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.2005, allocations: 0.5689 MB / 457.3 MB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2126/0.4131, allocations: 30.14 MB / 487.4 MB, free: 46.78 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007051/0.4138, allocations: 366.4 kB / 487.8 MB, free: 46.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.4138, allocations: 0 / 487.8 MB, free: 46.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003024/0.4169, allocations: 1.407 MB / 489.2 MB, free: 46.08 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.4169, allocations: 72.7 kB / 489.3 MB, free: 46.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003118/0.42, allocations: 2.818 MB / 492.1 MB, free: 44.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.709e-05/0.4201, allocations: 41.66 kB / 492.1 MB, free: 44.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000727/0.4208, allocations: 1.397 MB / 493.5 MB, free: 43.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.4209, allocations: 166 kB / 493.7 MB, free: 43.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002322/0.4211, allocations: 232.5 kB / 493.9 MB, free: 43.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.436e-05/0.4212, allocations: 332.7 kB / 494.3 MB, free: 42.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000521/0.4217, allocations: 239.6 kB / 494.5 MB, free: 42.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006268/0.4223, allocations: 0.5967 MB / 495.1 MB, free: 42.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.4235, allocations: 0.8745 MB / 496 MB, free: 41.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.4235, allocations: 3.875 kB / 496 MB, free: 41.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001957/0.4254, allocations: 1.29 MB / 497.2 MB, free: 40.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.4255, allocations: 12.94 kB / 497.3 MB, free: 40.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.201e-05/0.4256, allocations: 81.27 kB / 497.3 MB, free: 40.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005049/0.4261, allocations: 282.2 kB / 497.6 MB, free: 40.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/0.4266, allocations: 168.6 kB / 497.8 MB, free: 40.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007572/0.4273, allocations: 0.8815 MB / 498.7 MB, free: 39.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009497/0.4283, allocations: 112.9 kB / 498.8 MB, free: 39.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.304e-05/0.4284, allocations: 63.06 kB / 498.8 MB, free: 39.89 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0006047/0.429, allocations: 428 kB / 499.3 MB, free: 39.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002793/0.4293, allocations: 389.5 kB / 499.6 MB, free: 39.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002399/0.4317, allocations: 1.254 MB / 0.4891 GB, free: 37.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.4317, allocations: 4 kB / 0.4892 GB, free: 37.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4317, allocations: 4 kB / 0.4892 GB, free: 37.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.4317, allocations: 0 / 0.4892 GB, free: 37.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002962/0.4346, allocations: 2.189 MB / 0.4913 GB, free: 35.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.055e-05/0.4347, allocations: 75.97 kB / 0.4914 GB, free: 35.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002898/0.435, allocations: 67.88 kB / 0.4914 GB, free: 35.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003872/0.4354, allocations: 264.1 kB / 0.4917 GB, free: 35.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.712e-05/0.4354, allocations: 35.98 kB / 0.4917 GB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006522/0.4361, allocations: 0.8645 MB / 0.4926 GB, free: 34.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4361, allocations: 0.875 kB / 0.4926 GB, free: 34.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.4377, allocations: 1.15 MB / 0.4937 GB, free: 33.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005801/0.4383, allocations: 496.3 kB / 0.4942 GB, free: 32.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000246/0.4385, allocations: 14.52 kB / 0.4942 GB, free: 32.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006271/0.4391, allocations: 35.97 kB / 0.4942 GB, free: 32.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.4393, allocations: 59.94 kB / 0.4943 GB, free: 32.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.381e-05/0.4393, allocations: 36 kB / 0.4943 GB, free: 32.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001971/0.4413, allocations: 1.836 MB / 0.4961 GB, free: 30.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4413, allocations: 0 / 0.4961 GB, free: 30.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001249/0.4426, allocations: 0.5678 MB / 0.4966 GB, free: 30.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0027/0.4453, allocations: 2.384 MB / 0.499 GB, free: 27.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.4468, allocations: 0.8228 MB / 0.4998 GB, free: 26.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4468, allocations: 0 / 0.4998 GB, free: 26.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007633/0.4476, allocations: 478.5 kB / 0.5002 GB, free: 26.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.4492, allocations: 0.5046 MB / 0.5007 GB, free: 25.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01856/0.4677, allocations: 16.13 MB / 0.5165 GB, free: 9.336 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006915/0.4684, allocations: 1.612 MB / 0.5181 GB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009987/0.4694, allocations: 390.5 kB / 0.5184 GB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008242/0.4702, allocations: 1.136 MB / 0.5195 GB, free: 6.184 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4702, allocations: 3.938 kB / 0.5195 GB, free: 6.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1178/0.5881, allocations: 62.94 MB / 0.581 GB, free: 7.102 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.48/19.07, allocations: 4.062 kB / 0.581 GB, free: 7.098 MB / 446.1 MB " [Timeout remaining time 641] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.608019359991886] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 19.257991921971552 19.275384203 19.091781682 Calling exit ...