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.001332/0.001332, allocations: 112.8 kB / 19.17 MB, free: 3.871 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.00135/0.00135, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.451/1.451, allocations: 230.2 MB / 255.2 MB, free: 15.23 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.2314/0.2314, allocations: 46.89 MB / 358.1 MB, free: 10.6 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.002272/0.002272, allocations: 83.86 kB / 0.4924 GB, free: 8.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1365, allocations: 65.97 MB / 0.5568 GB, free: 5.984 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003498/0.14, allocations: 1.558 MB / 0.5583 GB, free: 4.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.1411, allocations: 0.5587 MB / 0.5589 GB, free: 3.848 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.238e-05/0.1412, allocations: 0 / 0.5589 GB, free: 3.848 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.765e-05/0.1412, allocations: 15.86 kB / 0.5589 GB, free: 3.832 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.1413, allocations: 11.88 kB / 0.5589 GB, free: 3.82 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002702/0.1416, allocations: 51.88 kB / 0.5589 GB, free: 3.77 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001609/0.1417, allocations: 91.69 kB / 0.559 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.1419, allocations: 11.98 kB / 0.559 GB, free: 3.668 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.142, allocations: 43.86 kB / 0.5591 GB, free: 3.625 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.768e-05/0.1421, allocations: 43.81 kB / 0.5591 GB, free: 3.582 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.857e-05/0.1422, allocations: 8 kB / 0.5591 GB, free: 3.574 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.153e-05/0.1422, allocations: 12 kB / 0.5591 GB, free: 3.562 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.925e-05/0.1423, allocations: 23.92 kB / 0.5592 GB, free: 3.539 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.288e-05/0.1423, allocations: 39.78 kB / 0.5592 GB, free: 3.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.1425, allocations: 83.64 kB / 0.5593 GB, free: 3.418 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1425, allocations: 0 / 0.5593 GB, free: 3.418 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1425, allocations: 0 / 0.5593 GB, free: 3.418 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.1425, allocations: 0 / 0.5593 GB, free: 3.418 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.0007542/0.1433, allocations: 407.1 kB / 0.5597 GB, free: 2.973 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1433, allocations: 12.03 kB / 0.5597 GB, free: 2.961 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.1435, allocations: 16.88 kB / 0.5597 GB, free: 2.945 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002902/0.1438, allocations: 192.2 kB / 0.5599 GB, free: 2.719 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.1438, allocations: 8.375 kB / 0.5599 GB, free: 2.711 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.94e-05/0.1438, allocations: 8.375 kB / 0.5599 GB, free: 2.703 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002445/0.144, allocations: 101.9 kB / 0.56 GB, free: 2.598 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1441, allocations: 0 / 0.56 GB, free: 2.598 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.1441, allocations: 4 kB / 0.56 GB, free: 2.594 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1441, allocations: 3.938 kB / 0.56 GB, free: 2.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001528/0.1442, allocations: 47.97 kB / 0.56 GB, free: 2.543 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006204/0.1448, allocations: 332.6 kB / 0.5604 GB, free: 2.168 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.1451, allocations: 86.47 kB / 0.5604 GB, free: 2.074 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.1452, allocations: 44.84 kB / 0.5605 GB, free: 2.027 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.1452, allocations: 0 / 0.5605 GB, free: 2.027 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002597/0.1455, allocations: 99.34 kB / 0.5606 GB, free: 1.918 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 1.492e-06/0.1455, allocations: 0 / 0.5606 GB, free: 1.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005065/0.146, allocations: 197.1 kB / 0.5608 GB, free: 1.723 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.958e-05/0.1461, allocations: 63.34 kB / 0.5608 GB, free: 1.648 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.1462, allocations: 121.8 kB / 0.5609 GB, free: 1.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.1462, allocations: 29.7 kB / 0.561 GB, free: 1.484 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.291e-05/0.1463, allocations: 92.38 kB / 0.5611 GB, free: 1.387 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.058e-05/0.1463, allocations: 39.72 kB / 0.5611 GB, free: 1.348 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.347e-05/0.1464, allocations: 41.7 kB / 0.5611 GB, free: 1.301 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.1466, allocations: 322.8 kB / 0.5614 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.1467, allocations: 40.2 kB / 0.5615 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.1468, allocations: 72.27 kB / 0.5616 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.147, allocations: 128.1 kB / 0.5617 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.147, allocations: 0 / 0.5617 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003103/0.1473, allocations: 165.5 kB / 0.5618 GB, free: 0.543 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.1474, allocations: 4 kB / 0.5618 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1474, allocations: 4 kB / 0.5618 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.1474, allocations: 0 / 0.5618 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.1475, allocations: 19.98 kB / 0.5619 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.1475, allocations: 16 kB / 0.5619 GB, free: 0.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.313e-05/0.1476, allocations: 11.95 kB / 0.5619 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.1476, allocations: 7.984 kB / 0.5619 GB, free: 492 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.00012/0.1477, allocations: 128.1 kB / 0.562 GB, free: 356 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.968e-05/0.1477, allocations: 7.953 kB / 0.562 GB, free: 348 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.638e-05/0.1478, allocations: 16.5 kB / 0.562 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1478, allocations: 0 / 0.562 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.1478, allocations: 3.938 kB / 0.562 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1478, allocations: 0 / 0.562 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007089/0.1485, allocations: 461.8 kB / 0.5625 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1485, allocations: 0 / 0.5625 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.82e-05/0.1486, allocations: 11.92 kB / 0.5625 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1486, allocations: 4 kB / 0.5625 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.1486, allocations: 0 / 0.5625 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1486, allocations: 3.938 kB / 0.5625 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1486, allocations: 0 / 0.5625 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004612/0.149, allocations: 255.5 kB / 0.5627 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.88e-05/0.1491, allocations: 96.92 kB / 0.5628 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.1491, allocations: 4 kB / 0.5628 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.1492, allocations: 11.98 kB / 0.5629 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.312e-05/0.1493, allocations: 11.98 kB / 0.5629 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.1493, allocations: 4 kB / 0.5629 GB, free: 15.39 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.027e-05/0.1494, allocations: 91.27 kB / 0.563 GB, free: 15.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1494, allocations: 7.938 kB / 0.563 GB, free: 15.29 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002499/0.1496, allocations: 24 kB / 0.563 GB, free: 15.27 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.000131/0.1498, allocations: 99.19 kB / 0.5631 GB, free: 15.16 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003025/0.1501, allocations: 103.9 kB / 0.5632 GB, free: 15.06 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1501, allocations: 0 / 0.5632 GB, free: 15.06 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.1502, allocations: 43.92 kB / 0.5632 GB, free: 15.02 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.1505, allocations: 24.23 kB / 0.5632 GB, free: 14.99 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005057/0.151, allocations: 237 kB / 0.5635 GB, free: 14.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.1514, allocations: 0.6963 MB / 0.5641 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.448e-05/0.1514, allocations: 15.44 kB / 0.5642 GB, free: 13.98 MB / 430.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1514, allocations: 0 / 0.5642 GB, free: 13.98 MB / 430.1 MB Notification: Performance of Templates: time 0.003238/0.1546, allocations: 1.281 MB / 0.5654 GB, free: 12.71 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.320687342900783]