Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001821/0.001822, allocations: 117.2 kB / 18.45 MB, free: 4.594 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.002096/0.002096, allocations: 210.6 kB / 21.41 MB, free: 1.645 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.549/1.549, allocations: 227.4 MB / 251.6 MB, free: 64 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2378/0.2378, allocations: 46.18 MB / 351.1 MB, free: 14.27 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002247, allocations: 77.22 kB / 490.2 MB, free: 28.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1521, allocations: 62.44 MB / 0.5397 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003003/0.1552, allocations: 1.558 MB / 0.5412 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.1563, allocations: 0.5415 MB / 0.5417 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.377e-05/0.1564, allocations: 4 kB / 0.5417 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.921e-05/0.1564, allocations: 15.86 kB / 0.5417 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.1565, allocations: 11.86 kB / 0.5417 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002622/0.1568, allocations: 51.88 kB / 0.5418 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001574/0.157, allocations: 91.7 kB / 0.5419 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.1571, allocations: 11.98 kB / 0.5419 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.1573, allocations: 47.84 kB / 0.5419 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.134e-05/0.1574, allocations: 39.83 kB / 0.542 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.1574, allocations: 8 kB / 0.542 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.274e-05/0.1574, allocations: 16 kB / 0.542 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.479e-05/0.1575, allocations: 23.91 kB / 0.542 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.117e-05/0.1576, allocations: 35.8 kB / 0.5421 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001762/0.1577, allocations: 91.58 kB / 0.5421 GB, free: 1.688 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1578, allocations: 3.938 kB / 0.5422 GB, free: 1.684 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1578, allocations: 0 / 0.5422 GB, free: 1.684 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.1578, allocations: 3.984 kB / 0.5422 GB, free: 1.68 MB / 398.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.0007428/0.1585, allocations: 407.1 kB / 0.5425 GB, free: 1.234 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.1586, allocations: 12.03 kB / 0.5426 GB, free: 1.223 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.1587, allocations: 12.89 kB / 0.5426 GB, free: 1.211 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.159, allocations: 192.2 kB / 0.5428 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.159, allocations: 12.31 kB / 0.5428 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.196e-05/0.1591, allocations: 16.34 kB / 0.5428 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.1593, allocations: 97.89 kB / 0.5429 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.1593, allocations: 4 kB / 0.5429 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.1593, allocations: 0 / 0.5429 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.1593, allocations: 0 / 0.5429 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000145/0.1595, allocations: 50.22 kB / 0.5429 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005623/0.1601, allocations: 324.7 kB / 0.5432 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/0.1603, allocations: 102.5 kB / 0.5433 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001/0.1604, allocations: 40.84 kB / 0.5434 GB, free: 292 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.1604, allocations: 4 kB / 0.5434 GB, free: 288 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002128/0.1607, allocations: 99.34 kB / 0.5435 GB, free: 176 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.1607, allocations: 0 / 0.5435 GB, free: 176 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004923/0.1612, allocations: 197.7 kB / 0.5437 GB, free: 15.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.801e-05/0.1612, allocations: 59.34 kB / 0.5437 GB, free: 15.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.1614, allocations: 117.8 kB / 0.5438 GB, free: 15.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.1614, allocations: 33.7 kB / 0.5439 GB, free: 15.74 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.566e-05/0.1615, allocations: 92.38 kB / 0.5439 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.182e-05/0.1615, allocations: 39.72 kB / 0.544 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.289e-05/0.1616, allocations: 37.7 kB / 0.544 GB, free: 15.56 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1617, allocations: 326.8 kB / 0.5443 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.941e-05/0.1618, allocations: 43.97 kB / 0.5444 GB, free: 15.19 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.162, allocations: 72.27 kB / 0.5444 GB, free: 15.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.1622, allocations: 118.7 kB / 0.5446 GB, free: 14.97 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.1622, allocations: 4.219 kB / 0.5446 GB, free: 14.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002909/0.1625, allocations: 161.5 kB / 0.5447 GB, free: 14.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.1625, allocations: 11.94 kB / 0.5447 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1626, allocations: 0 / 0.5447 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.1626, allocations: 0 / 0.5447 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.1627, allocations: 28.05 kB / 0.5448 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.1627, allocations: 7.938 kB / 0.5448 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.388e-05/0.1628, allocations: 15.89 kB / 0.5448 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.1628, allocations: 4 kB / 0.5448 GB, free: 14.74 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.0001112/0.1629, allocations: 128.1 kB / 0.5449 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.078e-05/0.1629, allocations: 11.95 kB / 0.5449 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.94e-05/0.163, allocations: 12.44 kB / 0.5449 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.163, allocations: 0 / 0.5449 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.163, allocations: 11.94 kB / 0.5449 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.163, allocations: 0 / 0.5449 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005992/0.1636, allocations: 450.4 kB / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1636, allocations: 0 / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.399e-05/0.1637, allocations: 15.92 kB / 0.5454 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.1637, allocations: 0 / 0.5454 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.1637, allocations: 7.938 kB / 0.5454 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1637, allocations: 0 / 0.5454 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1637, allocations: 4 kB / 0.5454 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003575/0.1641, allocations: 269.9 kB / 0.5456 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-05/0.1642, allocations: 88.94 kB / 0.5457 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.1642, allocations: 4 kB / 0.5457 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.1643, allocations: 7.984 kB / 0.5457 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/0.1643, allocations: 11.98 kB / 0.5458 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.1644, allocations: 4 kB / 0.5458 GB, free: 13.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.927e-05/0.1644, allocations: 95.27 kB / 0.5459 GB, free: 13.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1645, allocations: 0 / 0.5459 GB, free: 13.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.1647, allocations: 24 kB / 0.5459 GB, free: 13.52 MB / 414.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.0001304/0.1649, allocations: 103.2 kB / 0.546 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000284/0.1651, allocations: 107.9 kB / 0.5461 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1652, allocations: 3.938 kB / 0.5461 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.1653, allocations: 60.16 kB / 0.5461 GB, free: 13.24 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.1656, allocations: 12 kB / 0.5461 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004653/0.166, allocations: 207.3 kB / 0.5463 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.1664, allocations: 0.6924 MB / 0.547 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.845e-05/0.1664, allocations: 4.891 kB / 0.547 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.104e-05/0.1665, allocations: 23.42 kB / 0.547 GB, free: 12.25 MB / 414.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1665, allocations: 0 / 0.547 GB, free: 12.25 MB / 414.1 MB Notification: Performance of Templates: time 0.003937/0.1704, allocations: 1.049 MB / 0.5481 GB, free: 11.21 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 5.279364979825914]