Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.00113/0.00113, allocations: 91.31 kB / 20.42 MB, free: 4.137 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.001364/0.001364, allocations: 169 kB / 23.79 MB, free: 0.7695 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.002/1.002, allocations: 158.6 MB / 185.7 MB, free: 2.469 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1563/0.1563, allocations: 32.37 MB / 270.4 MB, free: 14.67 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.244e-06/2.244e-06, allocations: 0 / 347.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.431e-05/3.655e-05, allocations: 2.312 kB / 347.6 MB, free: 9.457 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002429/0.002466, allocations: 1.568 MB / 349.2 MB, free: 7.883 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008661/0.003332, allocations: 0.5191 MB / 349.7 MB, free: 7.355 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.038e-05/0.003412, allocations: 0 / 349.7 MB, free: 7.355 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.787e-05/0.00346, allocations: 15.86 kB / 349.8 MB, free: 7.34 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.003573, allocations: 7.875 kB / 349.8 MB, free: 7.332 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.003867, allocations: 43.77 kB / 349.8 MB, free: 7.289 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001429/0.00401, allocations: 83.75 kB / 349.9 MB, free: 7.207 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.004153, allocations: 15.92 kB / 349.9 MB, free: 7.191 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002245/0.004378, allocations: 55.88 kB / 350 MB, free: 7.137 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.191e-05/0.004459, allocations: 27.97 kB / 350 MB, free: 7.109 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.298e-05/0.004492, allocations: 8 kB / 350 MB, free: 7.102 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.622e-05/0.004509, allocations: 8 kB / 350 MB, free: 7.094 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.938e-05/0.004548, allocations: 23.91 kB / 350 MB, free: 7.07 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.689e-05/0.004605, allocations: 27.91 kB / 350 MB, free: 7.043 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001724/0.004777, allocations: 63.73 kB / 350.1 MB, free: 6.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.004783, allocations: 0 / 350.1 MB, free: 6.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.004785, allocations: 0 / 350.1 MB, free: 6.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.004794, allocations: 0 / 350.1 MB, free: 6.98 MB / 282.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.0006186/0.005412, allocations: 432.3 kB / 350.5 MB, free: 6.523 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.005467, allocations: 8.031 kB / 350.5 MB, free: 6.516 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.22e-05/0.005529, allocations: 12.89 kB / 350.6 MB, free: 6.504 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.005631, allocations: 120.5 kB / 350.7 MB, free: 6.359 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.005658, allocations: 8.375 kB / 350.7 MB, free: 6.352 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.005674, allocations: 12.3 kB / 350.7 MB, free: 6.34 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.005833, allocations: 78.92 kB / 350.8 MB, free: 6.254 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.005843, allocations: 192 / 350.8 MB, free: 6.254 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.005863, allocations: 8.359 kB / 350.8 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.005875, allocations: 7.938 kB / 350.8 MB, free: 6.238 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.586e-05/0.005921, allocations: 19.98 kB / 350.8 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004584/0.006379, allocations: 299.7 kB / 351.1 MB, free: 5.891 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.006526, allocations: 82.91 kB / 351.2 MB, free: 5.797 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.139e-05/0.006567, allocations: 23.67 kB / 351.2 MB, free: 5.77 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.006592, allocations: 3.984 kB / 351.2 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001179/0.006709, allocations: 87.72 kB / 351.3 MB, free: 5.668 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.853e-06/0.006711, allocations: 4 kB / 351.3 MB, free: 5.664 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.00029/0.007001, allocations: 153.5 kB / 351.4 MB, free: 5.508 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.007042, allocations: 63.39 kB / 351.5 MB, free: 5.434 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.687e-05/0.007119, allocations: 173.9 kB / 351.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.007132, allocations: 29.7 kB / 351.7 MB, free: 5.211 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.007172, allocations: 143.1 kB / 351.8 MB, free: 5.066 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.379e-05/0.007206, allocations: 27.75 kB / 351.9 MB, free: 5.039 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.169e-05/0.007247, allocations: 47.36 kB / 351.9 MB, free: 4.984 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.301e-05/0.00732, allocations: 0.4884 MB / 352.4 MB, free: 4.484 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.842e-05/0.007359, allocations: 23.98 kB / 352.4 MB, free: 4.461 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.136e-05/0.00742, allocations: 82.03 kB / 352.5 MB, free: 4.355 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001044/0.007524, allocations: 110 kB / 352.6 MB, free: 4.223 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.007528, allocations: 0 / 352.6 MB, free: 4.223 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001606/0.007688, allocations: 141.6 kB / 352.8 MB, free: 4.078 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.007705, allocations: 4 kB / 352.8 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.007711, allocations: 4 kB / 352.8 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.007728, allocations: 4.156 kB / 352.8 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.007843, allocations: 31.92 kB / 352.8 MB, free: 4.035 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.007852, allocations: 4 kB / 352.8 MB, free: 4.031 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.359e-05/0.007886, allocations: 7.938 kB / 352.8 MB, free: 4.023 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.007897, allocations: 8 kB / 352.8 MB, free: 4.016 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,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) * 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 8.409e-05/0.007981, allocations: 174.5 kB / 353 MB, free: 3.832 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.741e-05/0.007998, allocations: 19.94 kB / 353 MB, free: 3.812 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.11e-05/0.008029, allocations: 8.438 kB / 353 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.008035, allocations: 4 kB / 353 MB, free: 3.805 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.00804, allocations: 0 / 353 MB, free: 3.805 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.008044, allocations: 4 kB / 353 MB, free: 3.801 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003233/0.008368, allocations: 413.3 kB / 353.4 MB, free: 3.355 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.008371, allocations: 4 kB / 353.4 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.984e-05/0.00841, allocations: 11.94 kB / 353.4 MB, free: 3.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.008413, allocations: 0 / 353.4 MB, free: 3.34 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.008422, allocations: 0 / 353.4 MB, free: 3.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.008425, allocations: 3.984 kB / 353.4 MB, free: 3.336 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.008427, allocations: 0 / 353.4 MB, free: 3.336 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001579/0.008585, allocations: 289.5 kB / 353.7 MB, free: 3.035 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.213e-05/0.008597, allocations: 15.89 kB / 353.7 MB, free: 3.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.008617, allocations: 0 / 353.7 MB, free: 3.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.892e-05/0.008676, allocations: 15.92 kB / 353.8 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.008724, allocations: 15.92 kB / 353.8 MB, free: 2.988 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.008742, allocations: 4 kB / 353.8 MB, free: 2.984 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.915e-05/0.008771, allocations: 139.1 kB / 353.9 MB, free: 2.848 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008771, allocations: 0 / 353.9 MB, free: 2.848 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001692/0.008941, allocations: 24 kB / 353.9 MB, free: 2.824 MB / 282.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 8.797e-05/0.009029, allocations: 95.89 kB / 354 MB, free: 2.719 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001673/0.009196, allocations: 80.22 kB / 354.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.009197, allocations: 4.062 kB / 354.1 MB, free: 2.633 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.987e-05/0.009247, allocations: 43.59 kB / 354.2 MB, free: 2.586 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.009491, allocations: 20.3 kB / 354.2 MB, free: 2.566 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000582/0.01007, allocations: 216.2 kB / 354.4 MB, free: 2.328 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.337e-05/0.01011, allocations: 63.34 kB / 354.4 MB, free: 2.246 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.331e-05/0.01014, allocations: 12.97 kB / 354.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.01018, allocations: 20.44 kB / 354.5 MB, free: 2.215 MB / 282.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01018, allocations: 0 / 354.5 MB, free: 2.215 MB / 282.7 MB Notification: Performance of Templates: time 0.003297/0.01347, allocations: 1.08 MB / 355.6 MB, free: 1.152 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 3.1972021642141044]