Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009333/0.0009333, allocations: 80.8 kB / 21.49 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.001021/0.001021, allocations: 168.8 kB / 24.91 MB, free: 9.191 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.9384/0.9384, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2369/0.2369, allocations: 34.26 MB / 296.1 MB, free: 0.7109 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 325.3 MB, free: 7.668 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.011e-05/2.179e-05, allocations: 3.016 kB / 325.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002466/0.002488, allocations: 1.634 MB / 326.9 MB, free: 6.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008545/0.003342, allocations: 0.5496 MB / 327.5 MB, free: 5.465 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.72e-05/0.003409, allocations: 0 / 327.5 MB, free: 5.465 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.886e-05/0.003438, allocations: 7.875 kB / 327.5 MB, free: 5.457 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.347e-05/0.003532, allocations: 15.86 kB / 327.5 MB, free: 5.441 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002328/0.003764, allocations: 55.75 kB / 327.5 MB, free: 5.387 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001355/0.0039, allocations: 91.69 kB / 327.6 MB, free: 5.297 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.835e-05/0.003988, allocations: 15.98 kB / 327.6 MB, free: 5.281 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.004152, allocations: 59.81 kB / 327.7 MB, free: 5.223 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.809e-05/0.00422, allocations: 39.88 kB / 327.7 MB, free: 5.184 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.00424, allocations: 8 kB / 327.7 MB, free: 5.176 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.644e-05/0.004296, allocations: 12 kB / 327.8 MB, free: 5.164 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.246e-05/0.004318, allocations: 15.98 kB / 327.8 MB, free: 5.148 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.182e-05/0.00435, allocations: 27.91 kB / 327.8 MB, free: 5.121 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.004474, allocations: 67.73 kB / 327.9 MB, free: 5.055 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.004477, allocations: 4 kB / 327.9 MB, free: 5.051 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.004479, allocations: 0 / 327.9 MB, free: 5.051 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.004483, allocations: 0 / 327.9 MB, free: 5.051 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.0007534/0.005237, allocations: 314.6 kB / 328.2 MB, free: 4.723 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.005276, allocations: 8.031 kB / 328.2 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.005401, allocations: 16.92 kB / 328.2 MB, free: 4.699 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.005555, allocations: 142.7 kB / 328.3 MB, free: 4.535 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.005573, allocations: 4.375 kB / 328.3 MB, free: 4.531 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.228e-05/0.005585, allocations: 8.359 kB / 328.3 MB, free: 4.523 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.005724, allocations: 88.91 kB / 328.4 MB, free: 4.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.005732, allocations: 4.125 kB / 328.4 MB, free: 4.426 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.005742, allocations: 384 / 328.4 MB, free: 4.426 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.005751, allocations: 7.938 kB / 328.4 MB, free: 4.418 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.953e-05/0.00579, allocations: 15.98 kB / 328.5 MB, free: 4.402 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003391/0.006129, allocations: 184.2 kB / 328.6 MB, free: 4.207 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.741e-05/0.006217, allocations: 50.56 kB / 328.7 MB, free: 4.148 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.349e-05/0.00624, allocations: 24.78 kB / 328.7 MB, free: 4.121 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.006257, allocations: 4 kB / 328.7 MB, free: 4.117 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.831e-05/0.006336, allocations: 79.3 kB / 328.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.006337, allocations: 0 / 328.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000141/0.006478, allocations: 98.97 kB / 328.9 MB, free: 3.926 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.006515, allocations: 63.34 kB / 329 MB, free: 3.852 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.794e-05/0.006573, allocations: 123.6 kB / 329.1 MB, free: 3.719 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.006588, allocations: 33.7 kB / 329.1 MB, free: 3.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.677e-05/0.006615, allocations: 80.42 kB / 329.2 MB, free: 3.594 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.006644, allocations: 43.72 kB / 329.2 MB, free: 3.551 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/0.006684, allocations: 41.67 kB / 329.3 MB, free: 3.504 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.984e-05/0.006764, allocations: 322.8 kB / 329.6 MB, free: 3.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.331e-05/0.006787, allocations: 16.2 kB / 329.6 MB, free: 3.164 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.829e-05/0.006825, allocations: 52.27 kB / 329.7 MB, free: 3.098 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.102e-05/0.006896, allocations: 87.31 kB / 329.7 MB, free: 3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.006898, allocations: 0 / 329.7 MB, free: 3 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000107/0.007005, allocations: 105.5 kB / 329.8 MB, free: 2.891 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.007019, allocations: 8 kB / 329.8 MB, free: 2.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.007023, allocations: 0 / 329.8 MB, free: 2.883 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.007034, allocations: 4 kB / 329.9 MB, free: 2.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.158e-05/0.007116, allocations: 27.92 kB / 329.9 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.00712, allocations: 4 kB / 329.9 MB, free: 2.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.06e-05/0.00715, allocations: 11.95 kB / 329.9 MB, free: 2.836 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.007158, allocations: 4 kB / 329.9 MB, free: 2.832 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.366e-05/0.007232, allocations: 139.8 kB / 330 MB, free: 2.684 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.497e-05/0.007247, allocations: 11.98 kB / 330 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.379e-05/0.00727, allocations: 16.42 kB / 330.1 MB, free: 2.656 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.007273, allocations: 0 / 330.1 MB, free: 2.656 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.007275, allocations: 4 kB / 330.1 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.00728, allocations: 0 / 330.1 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002176/0.007498, allocations: 250.7 kB / 330.3 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.007499, allocations: 0 / 330.3 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.907e-05/0.007529, allocations: 11.94 kB / 330.3 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.007531, allocations: 3.984 kB / 330.3 MB, free: 2.367 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.007537, allocations: 0 / 330.3 MB, free: 2.367 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.007539, allocations: 4 kB / 330.3 MB, free: 2.363 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.00754, allocations: 0 / 330.3 MB, free: 2.363 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001048/0.007645, allocations: 186.6 kB / 330.5 MB, free: 2.168 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.965e-05/0.007664, allocations: 3.953 kB / 330.5 MB, free: 2.164 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.007681, allocations: 7.984 kB / 330.5 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.392e-05/0.007735, allocations: 8 kB / 330.5 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.349e-05/0.007768, allocations: 11.97 kB / 330.5 MB, free: 2.137 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.007782, allocations: 4 kB / 330.5 MB, free: 2.133 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.003e-05/0.007802, allocations: 22.92 kB / 330.6 MB, free: 2.109 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007802, allocations: 7.875 kB / 330.6 MB, free: 2.102 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001404/0.007942, allocations: 27.94 kB / 330.6 MB, free: 2.074 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 8.361e-05/0.008026, allocations: 76.42 kB / 330.7 MB, free: 1.992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001087/0.008134, allocations: 76.69 kB / 330.8 MB, free: 1.914 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.008138, allocations: 4 kB / 330.8 MB, free: 1.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.086e-05/0.008179, allocations: 32.78 kB / 330.8 MB, free: 1.875 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.008338, allocations: 15.98 kB / 330.8 MB, free: 1.859 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004545/0.008792, allocations: 201.7 kB / 331 MB, free: 1.637 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.704e-05/0.008829, allocations: 63.34 kB / 331.1 MB, free: 1.555 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.26e-05/0.008862, allocations: 8.969 kB / 331.1 MB, free: 1.547 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.732e-05/0.008919, allocations: 63.38 kB / 331.1 MB, free: 1.484 MB / 298.7 MB Notification: Performance of SimCode: time 7.82e-07/0.00892, allocations: 0 / 331.1 MB, free: 1.484 MB / 298.7 MB Notification: Performance of Templates: time 0.002948/0.01187, allocations: 1.147 MB / 332.3 MB, free: 372 kB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.8768007778562605]