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.001591/0.001591, allocations: 75.59 kB / 21.18 MB, free: 3.387 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.001234/0.001234, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.022/1.022, allocations: 177.1 MB / 205 MB, free: 5.633 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.2614/0.2614, allocations: 32.81 MB / 294.3 MB, free: 1.262 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.593e-06/1.593e-06, allocations: 0 / 376 MB, free: 4.676 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.224e-05/2.384e-05, allocations: 2.312 kB / 376 MB, free: 4.672 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002023/0.002047, allocations: 1.572 MB / 377.6 MB, free: 3.086 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007513/0.002798, allocations: 0.5413 MB / 378.1 MB, free: 2.539 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.688e-05/0.002855, allocations: 4 kB / 378.1 MB, free: 2.535 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.25e-05/0.002887, allocations: 3.938 kB / 378.1 MB, free: 2.531 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.836e-05/0.002976, allocations: 15.86 kB / 378.1 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000236/0.003212, allocations: 55.75 kB / 378.2 MB, free: 2.461 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001256/0.003337, allocations: 95.69 kB / 378.3 MB, free: 2.367 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.003439, allocations: 7.984 kB / 378.3 MB, free: 2.359 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.003589, allocations: 63.88 kB / 378.4 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.122e-05/0.00366, allocations: 35.88 kB / 378.4 MB, free: 2.262 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.003681, allocations: 4 kB / 378.4 MB, free: 2.258 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.735e-05/0.003728, allocations: 12 kB / 378.4 MB, free: 2.246 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.492e-05/0.003753, allocations: 23.91 kB / 378.4 MB, free: 2.223 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.275e-05/0.003806, allocations: 27.86 kB / 378.5 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001317/0.003938, allocations: 71.78 kB / 378.5 MB, free: 2.125 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.00394, allocations: 0 / 378.5 MB, free: 2.125 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.003941, allocations: 0 / 378.5 MB, free: 2.125 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.003945, allocations: 0 / 378.5 MB, free: 2.125 MB / 346.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.0007984/0.004744, allocations: 436.2 kB / 379 MB, free: 1.664 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.004788, allocations: 8.031 kB / 379 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.004916, allocations: 28.88 kB / 379 MB, free: 1.629 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.005077, allocations: 140.4 kB / 379.1 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.0051, allocations: 8.359 kB / 379.1 MB, free: 1.457 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.598e-05/0.005116, allocations: 8.375 kB / 379.1 MB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001384/0.005254, allocations: 82.91 kB / 379.2 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.005264, allocations: 192 / 379.2 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.005278, allocations: 8.359 kB / 379.2 MB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.005288, allocations: 7.938 kB / 379.2 MB, free: 1.344 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.71e-05/0.005335, allocations: 19.73 kB / 379.3 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003818/0.005717, allocations: 315.6 kB / 379.6 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001251/0.005842, allocations: 78.97 kB / 379.6 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.994e-05/0.005882, allocations: 27.67 kB / 379.7 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.005903, allocations: 0 / 379.7 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001093/0.006012, allocations: 88.97 kB / 379.8 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.223e-06/0.006014, allocations: 0 / 379.8 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002631/0.006277, allocations: 149.5 kB / 379.9 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.006318, allocations: 63.39 kB / 380 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.41e-05/0.006402, allocations: 169.9 kB / 380.1 MB, free: 360 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.006418, allocations: 33.7 kB / 380.2 MB, free: 320 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.101e-05/0.006469, allocations: 147.1 kB / 380.3 MB, free: 164 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.58e-05/0.006504, allocations: 35.69 kB / 380.3 MB, free: 128 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.766e-05/0.006552, allocations: 39.38 kB / 380.4 MB, free: 80 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.00668, allocations: 0.4923 MB / 380.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.217e-05/0.006723, allocations: 19.98 kB / 380.9 MB, free: 15.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.478e-05/0.006787, allocations: 85.59 kB / 381 MB, free: 15.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.006888, allocations: 102.4 kB / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.00689, allocations: 4 kB / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001493/0.00704, allocations: 132.4 kB / 381.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.007055, allocations: 8 kB / 381.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.00706, allocations: 0 / 381.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.007078, allocations: 4 kB / 381.2 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.366e-05/0.007171, allocations: 23.98 kB / 381.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.007178, allocations: 0 / 381.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.282e-05/0.007211, allocations: 11.95 kB / 381.3 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.007222, allocations: 8 kB / 381.3 MB, free: 15.14 MB / 362.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.26e-05/0.007315, allocations: 182.5 kB / 381.4 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.76e-05/0.007333, allocations: 15.95 kB / 381.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.298e-05/0.007366, allocations: 12.66 kB / 381.5 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.007368, allocations: 0 / 381.5 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.007371, allocations: 3.938 kB / 381.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.007376, allocations: 3.984 kB / 381.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003309/0.007707, allocations: 413.2 kB / 381.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.007709, allocations: 0 / 381.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.248e-05/0.007742, allocations: 7.984 kB / 381.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.007743, allocations: 0 / 381.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.007755, allocations: 12 kB / 381.9 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.007757, allocations: 4 kB / 381.9 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.007759, allocations: 3.984 kB / 381.9 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.007944, allocations: 295.6 kB / 382.2 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.408e-06/0.007953, allocations: 3.953 kB / 382.2 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.007971, allocations: 4 kB / 382.2 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.501e-05/0.008026, allocations: 11.98 kB / 382.2 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.128e-05/0.008067, allocations: 11.92 kB / 382.2 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.008084, allocations: 4 kB / 382.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.649e-05/0.008131, allocations: 139.6 kB / 382.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008131, allocations: 4 kB / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001674/0.008298, allocations: 24 kB / 382.4 MB, free: 13.93 MB / 362.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.486e-05/0.008383, allocations: 103.2 kB / 382.5 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001539/0.008537, allocations: 87.53 kB / 382.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.008538, allocations: 0 / 382.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.517e-05/0.008593, allocations: 47.03 kB / 382.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.008807, allocations: 20.25 kB / 382.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005262/0.009333, allocations: 206.7 kB / 382.9 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.849e-05/0.009372, allocations: 63.34 kB / 382.9 MB, free: 13.35 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.527e-05/0.009407, allocations: 8.969 kB / 382.9 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.584e-05/0.009443, allocations: 20.5 kB / 382.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/0.009444, allocations: 0 / 382.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of Templates: time 0.002874/0.01232, allocations: 1.09 MB / 384 MB, free: 12.25 MB / 362.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: 3.208908840082586]