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.001729/0.001729, allocations: 120.4 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.002235/0.002235, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.55/1.55, allocations: 230.2 MB / 254.5 MB, free: 15.27 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.2287/0.2287, allocations: 46.89 MB / 357.4 MB, free: 10.54 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.002207/0.002207, allocations: 79.88 kB / 0.4912 GB, free: 8.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1337, allocations: 65.99 MB / 0.5556 GB, free: 6.477 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002581/0.1363, allocations: 1.546 MB / 0.5572 GB, free: 4.914 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009234/0.1372, allocations: 0.5665 MB / 0.5577 GB, free: 4.344 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.281e-05/0.1372, allocations: 3.938 kB / 0.5577 GB, free: 4.34 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.026e-05/0.1373, allocations: 3.938 kB / 0.5577 GB, free: 4.336 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 9.054e-05/0.1374, allocations: 15.86 kB / 0.5577 GB, free: 4.32 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002614/0.1376, allocations: 51.81 kB / 0.5578 GB, free: 4.27 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.1378, allocations: 99.69 kB / 0.5579 GB, free: 4.172 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.803e-05/0.1378, allocations: 4 kB / 0.5579 GB, free: 4.168 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.138, allocations: 47.89 kB / 0.5579 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.783e-05/0.1381, allocations: 43.78 kB / 0.558 GB, free: 4.078 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.071e-05/0.1381, allocations: 8 kB / 0.558 GB, free: 4.07 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.289e-05/0.1381, allocations: 12 kB / 0.558 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.169e-05/0.1382, allocations: 27.89 kB / 0.558 GB, free: 4.031 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.127e-05/0.1382, allocations: 35.8 kB / 0.558 GB, free: 3.996 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.1384, allocations: 75.7 kB / 0.5581 GB, free: 3.922 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1384, allocations: 0 / 0.5581 GB, free: 3.922 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1384, allocations: 0 / 0.5581 GB, free: 3.922 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.1384, allocations: 4 kB / 0.5581 GB, free: 3.918 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.0006956/0.1391, allocations: 407.1 kB / 0.5585 GB, free: 3.473 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.1391, allocations: 8.031 kB / 0.5585 GB, free: 3.465 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.264e-05/0.1392, allocations: 38.75 kB / 0.5586 GB, free: 3.418 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.1393, allocations: 24.81 kB / 0.5586 GB, free: 3.395 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002529/0.1395, allocations: 196.2 kB / 0.5588 GB, free: 3.164 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.1396, allocations: 8.375 kB / 0.5588 GB, free: 3.156 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.1396, allocations: 8.375 kB / 0.5588 GB, free: 3.148 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002205/0.1398, allocations: 97.75 kB / 0.5589 GB, free: 3.047 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.1398, allocations: 0 / 0.5589 GB, free: 3.047 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.1398, allocations: 0 / 0.5589 GB, free: 3.047 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1398, allocations: 0 / 0.5589 GB, free: 3.047 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000142/0.14, allocations: 47.97 kB / 0.5589 GB, free: 3 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005607/0.1405, allocations: 340.6 kB / 0.5592 GB, free: 2.617 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/0.1408, allocations: 82.53 kB / 0.5593 GB, free: 2.527 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.937e-05/0.1408, allocations: 40.84 kB / 0.5594 GB, free: 2.484 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.1409, allocations: 4 kB / 0.5594 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.1411, allocations: 106.7 kB / 0.5595 GB, free: 2.367 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.1411, allocations: 0 / 0.5595 GB, free: 2.367 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005217/0.1416, allocations: 197.6 kB / 0.5597 GB, free: 2.168 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.1417, allocations: 55.39 kB / 0.5597 GB, free: 2.102 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.1418, allocations: 125.8 kB / 0.5598 GB, free: 1.969 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.1418, allocations: 33.7 kB / 0.5599 GB, free: 1.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.156e-05/0.1419, allocations: 88.38 kB / 0.5599 GB, free: 1.836 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.754e-05/0.1419, allocations: 39.73 kB / 0.56 GB, free: 1.797 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.55e-05/0.142, allocations: 41.7 kB / 0.56 GB, free: 1.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1421, allocations: 330.9 kB / 0.5603 GB, free: 1.418 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.1422, allocations: 35.98 kB / 0.5604 GB, free: 1.383 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.1424, allocations: 79.02 kB / 0.5604 GB, free: 1.293 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002235/0.1426, allocations: 124.1 kB / 0.5606 GB, free: 1.156 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1426, allocations: 0 / 0.5606 GB, free: 1.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002996/0.1429, allocations: 165.6 kB / 0.5607 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.1429, allocations: 8 kB / 0.5607 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1429, allocations: 4 kB / 0.5607 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.143, allocations: 0 / 0.5607 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.1431, allocations: 27.86 kB / 0.5608 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.1431, allocations: 4 kB / 0.5608 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.362e-05/0.1431, allocations: 11.95 kB / 0.5608 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.1432, allocations: 4 kB / 0.5608 GB, free: 0.9297 MB / 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.0001129/0.1433, allocations: 132 kB / 0.5609 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.1433, allocations: 11.95 kB / 0.5609 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.301e-05/0.1433, allocations: 12.5 kB / 0.5609 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1433, allocations: 3.938 kB / 0.5609 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.1433, allocations: 0 / 0.5609 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1433, allocations: 0 / 0.5609 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006092/0.1439, allocations: 457.6 kB / 0.5614 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1439, allocations: 3.938 kB / 0.5614 GB, free: 268 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.399e-05/0.144, allocations: 11.98 kB / 0.5614 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.144, allocations: 4 kB / 0.5614 GB, free: 252 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.144, allocations: 0 / 0.5614 GB, free: 252 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.144, allocations: 0 / 0.5614 GB, free: 252 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.144, allocations: 0 / 0.5614 GB, free: 252 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004325/0.1444, allocations: 251.5 kB / 0.5616 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.836e-05/0.1445, allocations: 92.98 kB / 0.5617 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.1445, allocations: 11.94 kB / 0.5617 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.1447, allocations: 15.98 kB / 0.5617 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.489e-05/0.1447, allocations: 11.98 kB / 0.5618 GB, free: 15.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.1447, allocations: 4 kB / 0.5618 GB, free: 15.83 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.368e-05/0.1448, allocations: 95.2 kB / 0.5619 GB, free: 15.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1448, allocations: 0 / 0.5619 GB, free: 15.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002626/0.145, allocations: 24 kB / 0.5619 GB, free: 15.71 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.0007445/0.1458, allocations: 0.7943 MB / 0.5626 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002778/0.1461, allocations: 107.6 kB / 0.5628 GB, free: 14.79 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1461, allocations: 0 / 0.5628 GB, free: 14.79 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.1462, allocations: 51.91 kB / 0.5628 GB, free: 14.74 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.1464, allocations: 13.91 kB / 0.5628 GB, free: 14.73 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.1484, allocations: 1.66 MB / 0.5644 GB, free: 12.95 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.1487, allocations: 0.6924 MB / 0.5651 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.609e-05/0.1488, allocations: 12.88 kB / 0.5651 GB, free: 12.22 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.715e-05/0.1488, allocations: 27.42 kB / 0.5652 GB, free: 12.2 MB / 430.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1488, allocations: 0 / 0.5652 GB, free: 12.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02356/0.1724, allocations: 2.253 MB / 0.5674 GB, free: 10.03 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.071/8.244, allocations: 3.984 kB / 0.5674 GB, free: 10.02 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 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.23972028400749] 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.312885272316635 8.342374402 8.198316689 Calling exit ...