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.0009366/0.0009366, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.0009374/0.0009374, allocations: 171.4 kB / 24.92 MB, free: 9.199 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 0.9108/0.9108, allocations: 177.1 MB / 205.3 MB, free: 5.445 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.2483/0.2483, allocations: 32.8 MB / 294.6 MB, free: 1.254 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.243e-06/1.243e-06, allocations: 0 / 323.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.596e-05/1.72e-05, allocations: 4.984 kB / 323.2 MB, free: 9.723 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00188/0.001897, allocations: 1.57 MB / 324.8 MB, free: 8.141 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006908/0.002588, allocations: 0.5492 MB / 325.3 MB, free: 7.586 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.048e-05/0.002638, allocations: 0 / 325.3 MB, free: 7.586 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.52e-05/0.002663, allocations: 7.875 kB / 325.3 MB, free: 7.578 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.307e-05/0.002747, allocations: 19.78 kB / 325.3 MB, free: 7.559 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.002946, allocations: 51.81 kB / 325.4 MB, free: 7.508 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.00306, allocations: 91.69 kB / 325.5 MB, free: 7.418 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.142e-05/0.003132, allocations: 8 kB / 325.5 MB, free: 7.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.003253, allocations: 67.8 kB / 325.6 MB, free: 7.344 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.981e-05/0.003312, allocations: 39.89 kB / 325.6 MB, free: 7.305 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.776e-05/0.00333, allocations: 8 kB / 325.6 MB, free: 7.297 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.586e-05/0.003366, allocations: 8 kB / 325.6 MB, free: 7.289 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.012e-05/0.003386, allocations: 19.92 kB / 325.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.597e-05/0.003422, allocations: 27.97 kB / 325.7 MB, free: 7.242 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.003523, allocations: 67.72 kB / 325.7 MB, free: 7.176 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-06/0.003525, allocations: 0 / 325.7 MB, free: 7.176 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.003525, allocations: 0 / 325.7 MB, free: 7.176 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.085e-06/0.003528, allocations: 0 / 325.7 MB, free: 7.176 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.0003766/0.003905, allocations: 315.2 kB / 326 MB, free: 6.848 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.824e-05/0.003933, allocations: 12.02 kB / 326 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.287e-05/0.004016, allocations: 20.92 kB / 326.1 MB, free: 6.816 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.00413, allocations: 133.6 kB / 326.2 MB, free: 6.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.004145, allocations: 4.375 kB / 326.2 MB, free: 6.656 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.004157, allocations: 8.375 kB / 326.2 MB, free: 6.648 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.894e-05/0.004256, allocations: 83.53 kB / 326.3 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.004263, allocations: 4.172 kB / 326.3 MB, free: 6.555 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-06/0.004271, allocations: 4.375 kB / 326.3 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.004276, allocations: 3.938 kB / 326.3 MB, free: 6.547 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.875e-05/0.004305, allocations: 20.69 kB / 326.3 MB, free: 6.527 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002306/0.004535, allocations: 188.2 kB / 326.5 MB, free: 6.328 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.518e-05/0.004621, allocations: 54.55 kB / 326.6 MB, free: 6.266 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.162e-05/0.004642, allocations: 16.86 kB / 326.6 MB, free: 6.246 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.004657, allocations: 0 / 326.6 MB, free: 6.246 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.053e-05/0.004747, allocations: 92.84 kB / 326.7 MB, free: 6.145 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/0.004748, allocations: 4 kB / 326.7 MB, free: 6.141 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001305/0.004879, allocations: 93.7 kB / 326.8 MB, free: 6.043 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.004912, allocations: 63.41 kB / 326.8 MB, free: 5.969 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.775e-05/0.004969, allocations: 127.8 kB / 327 MB, free: 5.832 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.004984, allocations: 33.69 kB / 327 MB, free: 5.793 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.707e-05/0.005012, allocations: 84.42 kB / 327.1 MB, free: 5.703 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.814e-05/0.00504, allocations: 39.7 kB / 327.1 MB, free: 5.664 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-05/0.005075, allocations: 41.69 kB / 327.1 MB, free: 5.617 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.26e-05/0.005148, allocations: 322.8 kB / 327.5 MB, free: 5.293 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.759e-05/0.005165, allocations: 12 kB / 327.5 MB, free: 5.281 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.771e-05/0.005203, allocations: 59.27 kB / 327.5 MB, free: 5.211 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.527e-05/0.005268, allocations: 86.86 kB / 327.6 MB, free: 5.113 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.005271, allocations: 4 kB / 327.6 MB, free: 5.109 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 9.145e-05/0.005362, allocations: 97.53 kB / 327.7 MB, free: 5.008 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.799e-06/0.005372, allocations: 4 kB / 327.7 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.005377, allocations: 4 kB / 327.7 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.367e-06/0.005386, allocations: 4.125 kB / 327.7 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.885e-05/0.005455, allocations: 23.98 kB / 327.8 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.005461, allocations: 7.938 kB / 327.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.904e-05/0.00549, allocations: 15.94 kB / 327.8 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-06/0.005498, allocations: 7.984 kB / 327.8 MB, free: 4.941 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 7.204e-05/0.00557, allocations: 127.7 kB / 327.9 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.357e-05/0.005584, allocations: 11.98 kB / 327.9 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.005611, allocations: 12.44 kB / 327.9 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.005613, allocations: 0 / 327.9 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.005614, allocations: 0 / 327.9 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.005617, allocations: 4 kB / 327.9 MB, free: 4.777 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.00581, allocations: 254.6 kB / 328.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.005811, allocations: 0 / 328.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.219e-05/0.005833, allocations: 11.98 kB / 328.2 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.005835, allocations: 0 / 328.2 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.005841, allocations: 0 / 328.2 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.005843, allocations: 3.938 kB / 328.2 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.005844, allocations: 0 / 328.2 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.299e-05/0.005937, allocations: 189.5 kB / 328.4 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.596e-06/0.005946, allocations: 7.953 kB / 328.4 MB, free: 4.281 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.00596, allocations: 4 kB / 328.4 MB, free: 4.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.19e-05/0.006012, allocations: 15.98 kB / 328.4 MB, free: 4.262 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.433e-05/0.006036, allocations: 11.98 kB / 328.4 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.006046, allocations: 4 kB / 328.4 MB, free: 4.246 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.578e-05/0.006062, allocations: 24.02 kB / 328.5 MB, free: 4.223 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006062, allocations: 0 / 328.5 MB, free: 4.223 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001266/0.006189, allocations: 23.94 kB / 328.5 MB, free: 4.199 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 6.504e-05/0.006254, allocations: 88.33 kB / 328.6 MB, free: 4.105 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.742e-05/0.006341, allocations: 68.91 kB / 328.6 MB, free: 4.035 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.006344, allocations: 8.062 kB / 328.6 MB, free: 4.027 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.764e-05/0.006382, allocations: 35.91 kB / 328.7 MB, free: 3.992 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001247/0.006507, allocations: 19.97 kB / 328.7 MB, free: 3.973 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003586/0.006865, allocations: 201.5 kB / 328.9 MB, free: 3.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.179e-05/0.006897, allocations: 63.34 kB / 328.9 MB, free: 3.668 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.476e-05/0.006922, allocations: 4.984 kB / 329 MB, free: 3.664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/0.006977, allocations: 71.36 kB / 329 MB, free: 3.594 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.006977, allocations: 0 / 329 MB, free: 3.594 MB / 298.7 MB Notification: Performance of Templates: time 0.002317/0.009295, allocations: 1.139 MB / 330.2 MB, free: 2.488 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 -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.8355625178664923]