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.001789/0.001789, allocations: 121.4 kB / 19.17 MB, free: 3.852 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.002181/0.002181, allocations: 206.5 kB / 22.12 MB, free: 0.9062 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.608/1.608, allocations: 230.3 MB / 255.2 MB, free: 15.2 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.2476/0.2476, allocations: 46.92 MB / 358.2 MB, free: 10.41 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: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold") [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.002283/0.002283, allocations: 83.84 kB / 0.4925 GB, free: 7.668 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1401, allocations: 66.01 MB / 0.557 GB, free: 5.531 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003134/0.1433, allocations: 1.549 MB / 0.5585 GB, free: 3.965 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.1444, allocations: 0.5548 MB / 0.559 GB, free: 3.406 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.731e-05/0.1444, allocations: 0 / 0.559 GB, free: 3.406 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.709e-05/0.1445, allocations: 11.86 kB / 0.559 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 9.588e-05/0.1446, allocations: 15.86 kB / 0.559 GB, free: 3.379 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.1448, allocations: 55.88 kB / 0.5591 GB, free: 3.324 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001502/0.145, allocations: 87.7 kB / 0.5592 GB, free: 3.238 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.1451, allocations: 11.98 kB / 0.5592 GB, free: 3.227 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.1452, allocations: 51.83 kB / 0.5592 GB, free: 3.176 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.284e-05/0.1453, allocations: 35.84 kB / 0.5593 GB, free: 3.141 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.965e-05/0.1453, allocations: 8 kB / 0.5593 GB, free: 3.133 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.717e-05/0.1454, allocations: 12 kB / 0.5593 GB, free: 3.121 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.893e-05/0.1454, allocations: 23.91 kB / 0.5593 GB, free: 3.098 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.872e-05/0.1455, allocations: 39.8 kB / 0.5594 GB, free: 3.059 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.1456, allocations: 87.62 kB / 0.5594 GB, free: 2.973 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.1456, allocations: 0 / 0.5594 GB, free: 2.973 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.1456, allocations: 0 / 0.5594 GB, free: 2.973 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1456, allocations: 0 / 0.5594 GB, free: 2.973 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.0008165/0.1465, allocations: 411.1 kB / 0.5598 GB, free: 2.523 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1465, allocations: 8.031 kB / 0.5598 GB, free: 2.516 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.1467, allocations: 24.88 kB / 0.5599 GB, free: 2.492 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003149/0.147, allocations: 188.2 kB / 0.56 GB, free: 2.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.147, allocations: 12.36 kB / 0.5601 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.147, allocations: 4.375 kB / 0.5601 GB, free: 2.254 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.1472, allocations: 97.08 kB / 0.5602 GB, free: 2.156 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.1473, allocations: 3.938 kB / 0.5602 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.1473, allocations: 0 / 0.5602 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.1473, allocations: 7.938 kB / 0.5602 GB, free: 2.145 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001479/0.1474, allocations: 47.97 kB / 0.5602 GB, free: 2.098 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005711/0.148, allocations: 328.7 kB / 0.5605 GB, free: 1.727 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.1482, allocations: 86.53 kB / 0.5606 GB, free: 1.633 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.1483, allocations: 40.78 kB / 0.5606 GB, free: 1.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.1483, allocations: 7.984 kB / 0.5606 GB, free: 1.582 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001993/0.1485, allocations: 99.36 kB / 0.5607 GB, free: 1.473 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.1485, allocations: 0 / 0.5607 GB, free: 1.473 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004931/0.149, allocations: 193.7 kB / 0.5609 GB, free: 1.277 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/0.1491, allocations: 59.39 kB / 0.561 GB, free: 1.207 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.1492, allocations: 113.8 kB / 0.5611 GB, free: 1.086 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.582e-05/0.1492, allocations: 41.64 kB / 0.5611 GB, free: 1.039 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/0.1493, allocations: 100.3 kB / 0.5612 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.146e-05/0.1493, allocations: 31.75 kB / 0.5613 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.005e-05/0.1494, allocations: 37.7 kB / 0.5613 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1496, allocations: 326.8 kB / 0.5616 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.1497, allocations: 40.19 kB / 0.5616 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.1498, allocations: 76.27 kB / 0.5617 GB, free: 412 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.15, allocations: 128 kB / 0.5618 GB, free: 272 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.15, allocations: 4 kB / 0.5618 GB, free: 268 kB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003157/0.1503, allocations: 161.5 kB / 0.562 GB, free: 100 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.1504, allocations: 8 kB / 0.562 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1504, allocations: 0 / 0.562 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.1504, allocations: 4 kB / 0.562 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.1505, allocations: 15.98 kB / 0.562 GB, free: 72 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.1505, allocations: 11.88 kB / 0.562 GB, free: 60 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.408e-05/0.1506, allocations: 11.95 kB / 0.562 GB, free: 48 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.1506, allocations: 8.125 kB / 0.5621 GB, free: 40 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.0001329/0.1507, allocations: 132.1 kB / 0.5622 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.856e-05/0.1507, allocations: 11.95 kB / 0.5622 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.992e-05/0.1508, allocations: 8.5 kB / 0.5622 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1508, allocations: 0 / 0.5622 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.1508, allocations: 7.938 kB / 0.5622 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.1508, allocations: 3.984 kB / 0.5622 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006148/0.1514, allocations: 450.3 kB / 0.5626 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1514, allocations: 0 / 0.5626 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.85e-05/0.1515, allocations: 15.92 kB / 0.5627 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1515, allocations: 0 / 0.5627 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.1515, allocations: 0 / 0.5627 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.1515, allocations: 4 kB / 0.5627 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.1515, allocations: 3.938 kB / 0.5627 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003681/0.1519, allocations: 259.4 kB / 0.5629 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.161e-05/0.1519, allocations: 88.94 kB / 0.563 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.1519, allocations: 8 kB / 0.563 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.152, allocations: 7.984 kB / 0.563 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.313e-05/0.1521, allocations: 11.98 kB / 0.563 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.1521, allocations: 4 kB / 0.563 GB, free: 14.94 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.533e-05/0.1522, allocations: 99.64 kB / 0.5631 GB, free: 14.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1522, allocations: 7.938 kB / 0.5631 GB, free: 14.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002465/0.1524, allocations: 20 kB / 0.5631 GB, free: 14.82 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.0001288/0.1526, allocations: 111.2 kB / 0.5633 GB, free: 14.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002781/0.1528, allocations: 99.89 kB / 0.5634 GB, free: 14.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1528, allocations: 0 / 0.5634 GB, free: 14.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.153, allocations: 51.91 kB / 0.5634 GB, free: 14.55 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.1532, allocations: 7.75 kB / 0.5634 GB, free: 14.55 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005058/0.1537, allocations: 249.2 kB / 0.5636 GB, free: 14.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.1541, allocations: 0.6924 MB / 0.5643 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.979e-05/0.1541, allocations: 11.44 kB / 0.5643 GB, free: 13.54 MB / 430.1 MB Notification: Performance of SimCode: time 3e-07/0.1541, allocations: 0 / 0.5643 GB, free: 13.54 MB / 430.1 MB Notification: Performance of Templates: time 0.003069/0.1572, allocations: 1.278 MB / 0.5656 GB, free: 12.26 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.616059469000902]