Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 121.2 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 206.6 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 230.4 MB / 254.7 MB, free: 14.84 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2294/0.2294, allocations: 46.93 MB / 357.7 MB, free: 10.2 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002319/0.002319, allocations: 83.86 kB / 0.4917 GB, free: 7.746 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1339, allocations: 66.04 MB / 0.5561 GB, free: 5.578 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003424/0.1373, allocations: 1.552 MB / 0.5577 GB, free: 4.008 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.1388, allocations: 0.5627 MB / 0.5582 GB, free: 3.441 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.032e-05/0.1389, allocations: 0 / 0.5582 GB, free: 3.441 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 5.223e-05/0.1389, allocations: 7.875 kB / 0.5582 GB, free: 3.434 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.139, allocations: 15.84 kB / 0.5582 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.1394, allocations: 51.88 kB / 0.5583 GB, free: 3.367 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.1396, allocations: 91.7 kB / 0.5584 GB, free: 3.277 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.1397, allocations: 7.984 kB / 0.5584 GB, free: 3.27 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.1399, allocations: 47.84 kB / 0.5584 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.941e-05/0.1399, allocations: 47.83 kB / 0.5585 GB, free: 3.176 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.99e-05/0.14, allocations: 8 kB / 0.5585 GB, free: 3.168 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.586e-05/0.14, allocations: 8 kB / 0.5585 GB, free: 3.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.273e-05/0.14, allocations: 23.91 kB / 0.5585 GB, free: 3.137 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.044e-05/0.1401, allocations: 35.8 kB / 0.5585 GB, free: 3.102 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.1403, allocations: 83.7 kB / 0.5586 GB, free: 3.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1403, allocations: 3.938 kB / 0.5586 GB, free: 3.016 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1403, allocations: 0 / 0.5586 GB, free: 3.016 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.1403, allocations: 0 / 0.5586 GB, free: 3.016 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.0007525/0.1411, allocations: 411.1 kB / 0.559 GB, free: 2.566 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.1411, allocations: 12.03 kB / 0.559 GB, free: 2.555 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.492e-05/0.1411, allocations: 42.67 kB / 0.5591 GB, free: 2.504 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.1413, allocations: 20.88 kB / 0.5591 GB, free: 2.484 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002941/0.1416, allocations: 192.3 kB / 0.5593 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.1416, allocations: 4.375 kB / 0.5593 GB, free: 2.254 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.937e-05/0.1416, allocations: 8.375 kB / 0.5593 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.1419, allocations: 97.7 kB / 0.5594 GB, free: 2.145 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.1419, allocations: 0 / 0.5594 GB, free: 2.145 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.1419, allocations: 4 kB / 0.5594 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.1419, allocations: 4 kB / 0.5594 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.1421, allocations: 47.91 kB / 0.5594 GB, free: 2.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006523/0.1427, allocations: 332.6 kB / 0.5597 GB, free: 1.715 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002436/0.143, allocations: 82.55 kB / 0.5598 GB, free: 1.625 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.1431, allocations: 44.77 kB / 0.5599 GB, free: 1.578 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.1431, allocations: 4 kB / 0.5599 GB, free: 1.574 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002273/0.1434, allocations: 98.73 kB / 0.56 GB, free: 1.469 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 4.619e-06/0.1434, allocations: 7.984 kB / 0.56 GB, free: 1.461 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.000537/0.1439, allocations: 193.7 kB / 0.5602 GB, free: 1.266 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.114e-05/0.144, allocations: 59.39 kB / 0.5602 GB, free: 1.195 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.1441, allocations: 117.8 kB / 0.5603 GB, free: 1.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.1441, allocations: 33.7 kB / 0.5604 GB, free: 1.031 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.727e-05/0.1442, allocations: 104.3 kB / 0.5605 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.493e-05/0.1442, allocations: 31.73 kB / 0.5605 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-05/0.1443, allocations: 37.94 kB / 0.5605 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.1445, allocations: 326.8 kB / 0.5608 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.1446, allocations: 43.91 kB / 0.5609 GB, free: 488 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.1447, allocations: 72.27 kB / 0.5609 GB, free: 400 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.1449, allocations: 124.2 kB / 0.5611 GB, free: 260 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1449, allocations: 0 / 0.5611 GB, free: 260 kB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003048/0.1452, allocations: 160.7 kB / 0.5612 GB, free: 96 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.1453, allocations: 12.12 kB / 0.5612 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1453, allocations: 0 / 0.5612 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.1453, allocations: 4 kB / 0.5612 GB, free: 80 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.1454, allocations: 23.92 kB / 0.5613 GB, free: 56 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.1454, allocations: 3.938 kB / 0.5613 GB, free: 52 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.118e-05/0.1455, allocations: 15.94 kB / 0.5613 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.1455, allocations: 8 kB / 0.5613 GB, free: 28 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.0001324/0.1456, allocations: 124.1 kB / 0.5614 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.099e-05/0.1457, allocations: 7.953 kB / 0.5614 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.909e-05/0.1457, allocations: 16.48 kB / 0.5614 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.1457, allocations: 7.938 kB / 0.5614 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1457, allocations: 0 / 0.5614 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1457, allocations: 0 / 0.5614 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006592/0.1464, allocations: 450.3 kB / 0.5619 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1464, allocations: 3.938 kB / 0.5619 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.42e-05/0.1464, allocations: 8 kB / 0.5619 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.1464, allocations: 0 / 0.5619 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.1465, allocations: 11.98 kB / 0.5619 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.1465, allocations: 4 kB / 0.5619 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1465, allocations: 7.922 kB / 0.5619 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003764/0.1468, allocations: 259.5 kB / 0.5621 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.926e-05/0.1469, allocations: 85 kB / 0.5622 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.702e-05/0.1469, allocations: 7.938 kB / 0.5622 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.147, allocations: 11.98 kB / 0.5622 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.1471, allocations: 11.98 kB / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.1471, allocations: 4 kB / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.328e-05/0.1472, allocations: 99.64 kB / 0.5624 GB, free: 14.83 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1472, allocations: 0 / 0.5624 GB, free: 14.83 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002532/0.1474, allocations: 20 kB / 0.5624 GB, free: 14.81 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.0007232/0.1482, allocations: 0.7913 MB / 0.5631 GB, free: 13.99 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003067/0.1485, allocations: 115.2 kB / 0.5633 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1485, allocations: 0 / 0.5633 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.1486, allocations: 43.92 kB / 0.5633 GB, free: 13.84 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.1489, allocations: 19.91 kB / 0.5633 GB, free: 13.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/0.151, allocations: 1.661 MB / 0.5649 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.1514, allocations: 0.6924 MB / 0.5656 GB, free: 11.33 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.643e-05/0.1514, allocations: 12.88 kB / 0.5656 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.006e-05/0.1515, allocations: 27.42 kB / 0.5657 GB, free: 11.29 MB / 430.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1515, allocations: 0 / 0.5657 GB, free: 11.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02278/0.1743, allocations: 2.251 MB / 0.5679 GB, free: 9.117 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.052/8.227, allocations: 10.53 kB / 0.5679 GB, free: 9.109 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000396747 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.399016508832574] 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.297552046366036 8.318436398 8.175062097 Calling exit ...