Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009829/0.0009829, allocations: 80.92 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 169.3 kB / 24.91 MB, free: 9.184 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.045/1.045, allocations: 177.1 MB / 205.3 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2854/0.2854, allocations: 32.81 MB / 294.6 MB, free: 1.25 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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.0.0_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.0.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 323.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.913e-05/3.095e-05, allocations: 4.562 kB / 323.3 MB, free: 9.691 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003329/0.00336, allocations: 1.609 MB / 324.9 MB, free: 8.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.004433, allocations: 0.553 MB / 325.4 MB, free: 7.512 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.207e-05/0.004505, allocations: 0 / 325.4 MB, free: 7.512 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.498e-05/0.00454, allocations: 7.875 kB / 325.4 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001089/0.004648, allocations: 15.86 kB / 325.4 MB, free: 7.488 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002816/0.00493, allocations: 51.8 kB / 325.5 MB, free: 7.438 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001498/0.00508, allocations: 91.7 kB / 325.6 MB, free: 7.348 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.375e-05/0.005174, allocations: 7.984 kB / 325.6 MB, free: 7.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002067/0.00538, allocations: 67.81 kB / 325.7 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.212e-05/0.005462, allocations: 31.89 kB / 325.7 MB, free: 7.242 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.005484, allocations: 12 kB / 325.7 MB, free: 7.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.179e-05/0.005546, allocations: 8 kB / 325.7 MB, free: 7.223 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.7e-05/0.005573, allocations: 23.91 kB / 325.7 MB, free: 7.199 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.28e-05/0.005616, allocations: 31.91 kB / 325.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.005767, allocations: 59.8 kB / 325.8 MB, free: 7.109 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.00577, allocations: 0 / 325.8 MB, free: 7.109 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.00577, allocations: 0 / 325.8 MB, free: 7.109 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.005775, allocations: 0 / 325.8 MB, free: 7.109 MB / 298.7 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.0004987/0.006274, allocations: 323.1 kB / 326.1 MB, free: 6.773 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.006314, allocations: 12.03 kB / 326.1 MB, free: 6.762 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.006465, allocations: 24.91 kB / 326.2 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.006627, allocations: 126.3 kB / 326.3 MB, free: 6.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.006649, allocations: 8.359 kB / 326.3 MB, free: 6.582 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/0.006665, allocations: 12.38 kB / 326.3 MB, free: 6.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001454/0.00681, allocations: 79.53 kB / 326.4 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.006819, allocations: 192 / 326.4 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.006828, allocations: 384 / 326.4 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.006836, allocations: 11.94 kB / 326.4 MB, free: 6.473 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.393e-05/0.00688, allocations: 26.42 kB / 326.4 MB, free: 6.449 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003384/0.007218, allocations: 180.3 kB / 326.6 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001209/0.007339, allocations: 62.47 kB / 326.7 MB, free: 6.188 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.212e-05/0.007371, allocations: 16.86 kB / 326.7 MB, free: 6.168 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.007391, allocations: 4 kB / 326.7 MB, free: 6.164 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001107/0.007502, allocations: 83.23 kB / 326.8 MB, free: 6.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.422e-06/0.007503, allocations: 0 / 326.8 MB, free: 6.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001893/0.007693, allocations: 97.72 kB / 326.9 MB, free: 5.969 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.007742, allocations: 63.39 kB / 326.9 MB, free: 5.895 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.365e-05/0.007826, allocations: 123.6 kB / 327 MB, free: 5.762 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.007846, allocations: 29.7 kB / 327.1 MB, free: 5.727 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.108e-05/0.007887, allocations: 96.39 kB / 327.2 MB, free: 5.625 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.111e-05/0.007929, allocations: 35.72 kB / 327.2 MB, free: 5.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.729e-05/0.007986, allocations: 37.7 kB / 327.2 MB, free: 5.547 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.908e-05/0.008085, allocations: 322.8 kB / 327.6 MB, free: 5.223 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.314e-05/0.008118, allocations: 15.98 kB / 327.6 MB, free: 5.207 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.633e-05/0.008174, allocations: 55.64 kB / 327.6 MB, free: 5.141 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.008286, allocations: 81.25 kB / 327.7 MB, free: 5.047 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.008288, allocations: 4 kB / 327.7 MB, free: 5.043 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001606/0.008449, allocations: 102.9 kB / 327.8 MB, free: 4.938 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.008464, allocations: 4 kB / 327.8 MB, free: 4.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.008473, allocations: 7.984 kB / 327.8 MB, free: 4.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.008487, allocations: 0 / 327.8 MB, free: 4.926 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.008598, allocations: 40.05 kB / 327.9 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.008602, allocations: 0 / 327.9 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.637e-05/0.008649, allocations: 7.953 kB / 327.9 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.008661, allocations: 8 kB / 327.9 MB, free: 4.871 MB / 298.7 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 9.117e-05/0.008752, allocations: 131.9 kB / 328 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.34e-05/0.008775, allocations: 11.98 kB / 328 MB, free: 4.719 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.806e-05/0.008803, allocations: 12.38 kB / 328 MB, free: 4.707 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.008809, allocations: 7.984 kB / 328 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.008811, allocations: 3.938 kB / 328 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.008816, allocations: 0 / 328 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003108/0.009127, allocations: 254.7 kB / 328.3 MB, free: 4.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.009129, allocations: 0 / 328.3 MB, free: 4.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.932e-05/0.009178, allocations: 11.92 kB / 328.3 MB, free: 4.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.009183, allocations: 4 kB / 328.3 MB, free: 4.406 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.009193, allocations: 4 kB / 328.3 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.009195, allocations: 0 / 328.3 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.009197, allocations: 0 / 328.3 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001597/0.009356, allocations: 180.9 kB / 328.5 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.492e-05/0.009371, allocations: 7.953 kB / 328.5 MB, free: 4.203 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.009393, allocations: 8 kB / 328.5 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.532e-05/0.009478, allocations: 15.98 kB / 328.5 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.569e-05/0.009514, allocations: 7.984 kB / 328.5 MB, free: 4.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.00953, allocations: 4 kB / 328.5 MB, free: 4.168 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.431e-05/0.009554, allocations: 17.94 kB / 328.5 MB, free: 4.148 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.009554, allocations: 0 / 328.5 MB, free: 4.148 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002243/0.009779, allocations: 27.94 kB / 328.6 MB, free: 4.121 MB / 298.7 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.0001096/0.009888, allocations: 84.36 kB / 328.7 MB, free: 4.031 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001438/0.01003, allocations: 74.44 kB / 328.7 MB, free: 3.957 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.01004, allocations: 256 / 328.7 MB, free: 3.957 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.018e-05/0.0101, allocations: 40.78 kB / 328.8 MB, free: 3.914 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002123/0.01031, allocations: 14.06 kB / 328.8 MB, free: 3.902 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005623/0.01087, allocations: 201.5 kB / 329 MB, free: 3.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.576e-05/0.01092, allocations: 59.36 kB / 329 MB, free: 3.602 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.257e-05/0.01096, allocations: 12.97 kB / 329 MB, free: 3.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.311e-05/0.01103, allocations: 71.3 kB / 329.1 MB, free: 3.52 MB / 298.7 MB Notification: Performance of SimCode: time 9.21e-07/0.01103, allocations: 4 kB / 329.1 MB, free: 3.516 MB / 298.7 MB Notification: Performance of Templates: time 0.002882/0.01392, allocations: 1.152 MB / 330.3 MB, free: 2.395 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9271378088742495]