Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.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.001259/0.001259, allocations: 121 kB / 18.5 MB, free: 4.562 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.001385/0.001385, allocations: 213.5 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.493/1.493, allocations: 230.6 MB / 254.8 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2387/0.2387, allocations: 46.93 MB / 357.8 MB, free: 10.3 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 63.91 kB / 0.4916 GB, free: 7.973 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1373, allocations: 65.99 MB / 0.5561 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00305/0.1403, allocations: 1.554 MB / 0.5576 GB, free: 4.285 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.1415, allocations: 0.5587 MB / 0.5581 GB, free: 3.723 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.803e-05/0.1416, allocations: 4 kB / 0.5581 GB, free: 3.719 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.06e-05/0.1416, allocations: 3.938 kB / 0.5581 GB, free: 3.715 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001117/0.1417, allocations: 19.78 kB / 0.5581 GB, free: 3.695 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002488/0.142, allocations: 47.88 kB / 0.5582 GB, free: 3.648 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.1422, allocations: 95.7 kB / 0.5583 GB, free: 3.555 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.115e-05/0.1423, allocations: 4 kB / 0.5583 GB, free: 3.551 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001477/0.1424, allocations: 51.83 kB / 0.5583 GB, free: 3.5 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.599e-05/0.1425, allocations: 39.84 kB / 0.5584 GB, free: 3.461 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.1426, allocations: 8 kB / 0.5584 GB, free: 3.453 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.336e-05/0.1426, allocations: 15.98 kB / 0.5584 GB, free: 3.438 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.879e-05/0.1426, allocations: 23.91 kB / 0.5584 GB, free: 3.414 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.576e-05/0.1427, allocations: 35.8 kB / 0.5584 GB, free: 3.379 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.1429, allocations: 75.7 kB / 0.5585 GB, free: 3.305 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1429, allocations: 0 / 0.5585 GB, free: 3.305 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1429, allocations: 4 kB / 0.5585 GB, free: 3.301 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.1429, allocations: 0 / 0.5585 GB, free: 3.301 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007412/0.1436, allocations: 411.1 kB / 0.5589 GB, free: 2.852 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.1437, allocations: 8.031 kB / 0.5589 GB, free: 2.844 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.637e-05/0.1437, allocations: 16.06 kB / 0.5589 GB, free: 2.828 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.112e-05/0.1437, allocations: 38.67 kB / 0.559 GB, free: 2.781 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.1439, allocations: 16.89 kB / 0.559 GB, free: 2.766 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/0.1441, allocations: 196.3 kB / 0.5592 GB, free: 2.535 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.1441, allocations: 4.375 kB / 0.5592 GB, free: 2.531 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.577e-05/0.1442, allocations: 12.34 kB / 0.5592 GB, free: 2.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/0.1444, allocations: 93.58 kB / 0.5593 GB, free: 2.422 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.1444, allocations: 0 / 0.5593 GB, free: 2.422 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.1444, allocations: 8 kB / 0.5593 GB, free: 2.414 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1444, allocations: 0 / 0.5593 GB, free: 2.414 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001537/0.1446, allocations: 47.91 kB / 0.5593 GB, free: 2.367 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000572/0.1452, allocations: 332.7 kB / 0.5597 GB, free: 1.992 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.1454, allocations: 82.53 kB / 0.5597 GB, free: 1.902 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.1455, allocations: 40.84 kB / 0.5598 GB, free: 1.859 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.1455, allocations: 0 / 0.5598 GB, free: 1.859 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002146/0.1457, allocations: 107.3 kB / 0.5599 GB, free: 1.742 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.1457, allocations: 0 / 0.5599 GB, free: 1.742 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005076/0.1463, allocations: 193.7 kB / 0.5601 GB, free: 1.547 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.1463, allocations: 59.39 kB / 0.5601 GB, free: 1.477 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.1464, allocations: 121.8 kB / 0.5602 GB, free: 1.348 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.1465, allocations: 29.7 kB / 0.5603 GB, free: 1.312 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.651e-05/0.1465, allocations: 100.4 kB / 0.5604 GB, free: 1.207 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.085e-05/0.1466, allocations: 31.95 kB / 0.5604 GB, free: 1.176 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.154e-05/0.1466, allocations: 37.7 kB / 0.5604 GB, free: 1.133 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1468, allocations: 330.7 kB / 0.5607 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.1469, allocations: 43.91 kB / 0.5608 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.147, allocations: 75.27 kB / 0.5609 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000227/0.1472, allocations: 123.7 kB / 0.561 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1472, allocations: 0 / 0.561 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003257/0.1476, allocations: 169.5 kB / 0.5611 GB, free: 376 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.1476, allocations: 5.875 kB / 0.5611 GB, free: 372 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1476, allocations: 0 / 0.5611 GB, free: 372 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.1476, allocations: 7.938 kB / 0.5611 GB, free: 364 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.1477, allocations: 19.98 kB / 0.5612 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.1477, allocations: 0 / 0.5612 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.779e-05/0.1478, allocations: 15.95 kB / 0.5612 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.1478, allocations: 4 kB / 0.5612 GB, free: 324 kB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.148, allocations: 138.3 kB / 0.5613 GB, free: 176 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.106e-05/0.148, allocations: 7.953 kB / 0.5613 GB, free: 168 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.148, allocations: 8.5 kB / 0.5613 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.148, allocations: 7.938 kB / 0.5613 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.148, allocations: 0 / 0.5613 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.148, allocations: 3.938 kB / 0.5613 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006322/0.1487, allocations: 454.2 kB / 0.5618 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.1487, allocations: 7.984 kB / 0.5618 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.324e-05/0.1487, allocations: 15.98 kB / 0.5618 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.1487, allocations: 0 / 0.5618 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.1487, allocations: 4 kB / 0.5618 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1487, allocations: 0 / 0.5618 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1487, allocations: 0 / 0.5618 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003928/0.1491, allocations: 275.2 kB / 0.5621 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/0.1492, allocations: 85.06 kB / 0.5621 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.1492, allocations: 4 kB / 0.5621 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.1493, allocations: 7.984 kB / 0.5622 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.1494, allocations: 15.98 kB / 0.5622 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.1494, allocations: 4 kB / 0.5622 GB, free: 15.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.925e-05/0.1495, allocations: 95.2 kB / 0.5623 GB, free: 15.11 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1495, allocations: 0 / 0.5623 GB, free: 15.11 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002534/0.1497, allocations: 20 kB / 0.5623 GB, free: 15.09 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007087/0.1504, allocations: 0.7904 MB / 0.5631 GB, free: 14.27 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002907/0.1507, allocations: 107.9 kB / 0.5632 GB, free: 14.17 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1507, allocations: 0 / 0.5632 GB, free: 14.17 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.1509, allocations: 47.91 kB / 0.5632 GB, free: 14.12 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.1511, allocations: 20.23 kB / 0.5632 GB, free: 14.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002035/0.1532, allocations: 1.656 MB / 0.5648 GB, free: 12.33 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.1535, allocations: 0.6924 MB / 0.5655 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.342e-05/0.1536, allocations: 8.875 kB / 0.5655 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.165e-05/0.1536, allocations: 27.44 kB / 0.5656 GB, free: 11.58 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1536, allocations: 0 / 0.5656 GB, free: 11.58 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01817/0.1718, allocations: 2.289 MB / 0.5678 GB, free: 9.375 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.253/8.425, allocations: 13.81 kB / 0.5678 GB, free: 9.363 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.41264819999924] Failed to read output from testmodel.py, exit status != 0: ['time', 'firstOrderHold.c', 'firstOrderHold.firstTrigger', 'firstOrderHold.pre_uSample', 'firstOrderHold.tSample', 'firstOrderHold.uSample', 'zeroOrderHold.firstTrigger', 'zeroOrderHold.ySample'] 8.551230528042652 8.571890203 8.42551252 Calling exit ...