Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009496/0.0009496, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001243, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9828/0.9828, allocations: 177 MB / 205.2 MB, free: 5.035 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2598/0.2598, allocations: 34.86 MB / 296.6 MB, free: 480 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 325.9 MB, free: 7.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.33e-05/1.476e-05, allocations: 6.312 kB / 325.9 MB, free: 7.152 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001993/0.002008, allocations: 1.622 MB / 327.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007993/0.002807, allocations: 0.5497 MB / 328.1 MB, free: 4.969 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.273e-05/0.00287, allocations: 0 / 328.1 MB, free: 4.969 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.476e-05/0.002905, allocations: 3.938 kB / 328.1 MB, free: 4.965 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.975e-05/0.003004, allocations: 23.78 kB / 328.1 MB, free: 4.941 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.003231, allocations: 47.77 kB / 328.2 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001493/0.00338, allocations: 99.67 kB / 328.3 MB, free: 4.797 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.058e-05/0.003471, allocations: 11.98 kB / 328.3 MB, free: 4.785 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.003629, allocations: 63.88 kB / 328.4 MB, free: 4.723 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.809e-05/0.003697, allocations: 35.88 kB / 328.4 MB, free: 4.688 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.003714, allocations: 8 kB / 328.4 MB, free: 4.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.351e-05/0.003767, allocations: 15.94 kB / 328.4 MB, free: 4.664 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.248e-05/0.00379, allocations: 23.91 kB / 328.4 MB, free: 4.641 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.121e-05/0.003821, allocations: 19.98 kB / 328.5 MB, free: 4.621 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.003934, allocations: 71.78 kB / 328.5 MB, free: 4.551 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.003936, allocations: 3.938 kB / 328.5 MB, free: 4.547 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.003937, allocations: 0 / 328.5 MB, free: 4.547 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.036e-06/0.00394, allocations: 0 / 328.5 MB, free: 4.547 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.0004051/0.004345, allocations: 314.6 kB / 328.8 MB, free: 4.219 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.004374, allocations: 8.031 kB / 328.8 MB, free: 4.211 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.004476, allocations: 24.91 kB / 328.9 MB, free: 4.188 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.004612, allocations: 133.6 kB / 329 MB, free: 4.031 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.004628, allocations: 4.375 kB / 329 MB, free: 4.027 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/0.00464, allocations: 12.36 kB / 329 MB, free: 4.016 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.004752, allocations: 80.41 kB / 329.1 MB, free: 3.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.00476, allocations: 4.188 kB / 329.1 MB, free: 3.926 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.004768, allocations: 384 / 329.1 MB, free: 3.926 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.004777, allocations: 7.938 kB / 329.1 MB, free: 3.918 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.991e-05/0.004807, allocations: 20.61 kB / 329.1 MB, free: 3.898 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002553/0.005063, allocations: 184.2 kB / 329.3 MB, free: 3.703 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.577e-05/0.005148, allocations: 50.55 kB / 329.4 MB, free: 3.645 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.485e-05/0.005173, allocations: 20.84 kB / 329.4 MB, free: 3.621 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.005189, allocations: 4 kB / 329.4 MB, free: 3.617 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.566e-05/0.005275, allocations: 79.94 kB / 329.5 MB, free: 3.527 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.022e-06/0.005276, allocations: 4 kB / 329.5 MB, free: 3.523 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000146/0.005422, allocations: 100.9 kB / 329.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/0.005461, allocations: 63.39 kB / 329.6 MB, free: 3.348 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.688e-05/0.005527, allocations: 124.5 kB / 329.7 MB, free: 3.215 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.005544, allocations: 33.7 kB / 329.8 MB, free: 3.176 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.503e-05/0.005579, allocations: 96.39 kB / 329.9 MB, free: 3.074 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.992e-05/0.005609, allocations: 31.73 kB / 329.9 MB, free: 3.043 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.874e-05/0.005647, allocations: 37.69 kB / 329.9 MB, free: 3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.372e-05/0.005731, allocations: 322.8 kB / 330.3 MB, free: 2.676 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.137e-05/0.005753, allocations: 15.98 kB / 330.3 MB, free: 2.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.346e-05/0.005796, allocations: 57.7 kB / 330.3 MB, free: 2.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.131e-05/0.005867, allocations: 80.12 kB / 330.4 MB, free: 2.496 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.005869, allocations: 0 / 330.4 MB, free: 2.496 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000103/0.005973, allocations: 101.5 kB / 330.5 MB, free: 2.391 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.005984, allocations: 8 kB / 330.5 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.005989, allocations: 4.125 kB / 330.5 MB, free: 2.379 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.006005, allocations: 7.984 kB / 330.5 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.797e-05/0.006083, allocations: 23.98 kB / 330.5 MB, free: 2.348 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.006087, allocations: 4 kB / 330.5 MB, free: 2.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.952e-05/0.006116, allocations: 11.95 kB / 330.6 MB, free: 2.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-06/0.006124, allocations: 4 kB / 330.6 MB, free: 2.328 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.98e-05/0.006204, allocations: 135.6 kB / 330.7 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.239e-05/0.006216, allocations: 8 kB / 330.7 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.292e-05/0.006239, allocations: 16.42 kB / 330.7 MB, free: 2.164 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.006241, allocations: 0 / 330.7 MB, free: 2.164 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.006243, allocations: 4 kB / 330.7 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.006247, allocations: 0 / 330.7 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002247/0.006471, allocations: 262.2 kB / 331 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.006472, allocations: 0 / 331 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.509e-05/0.006497, allocations: 11.98 kB / 331 MB, free: 1.871 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.006499, allocations: 0 / 331 MB, free: 1.871 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.006509, allocations: 8 kB / 331 MB, free: 1.863 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.006511, allocations: 0 / 331 MB, free: 1.863 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.006514, allocations: 4 kB / 331 MB, free: 1.859 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001217/0.006636, allocations: 175.4 kB / 331.2 MB, free: 1.672 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.1e-05/0.006647, allocations: 11.88 kB / 331.2 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.006665, allocations: 12 kB / 331.2 MB, free: 1.648 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.191e-05/0.006717, allocations: 7.984 kB / 331.2 MB, free: 1.641 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.217e-05/0.006749, allocations: 7.984 kB / 331.2 MB, free: 1.633 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.006764, allocations: 8 kB / 331.2 MB, free: 1.625 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.084e-05/0.006784, allocations: 21.38 kB / 331.2 MB, free: 1.602 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006784, allocations: 0 / 331.2 MB, free: 1.602 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001445/0.006929, allocations: 23.94 kB / 331.3 MB, free: 1.578 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 7.66e-05/0.007005, allocations: 80.36 kB / 331.3 MB, free: 1.492 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001172/0.007123, allocations: 76.7 kB / 331.4 MB, free: 1.414 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.007125, allocations: 0 / 331.4 MB, free: 1.414 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.395e-05/0.007169, allocations: 36.83 kB / 331.5 MB, free: 1.375 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001459/0.007315, allocations: 15.98 kB / 331.5 MB, free: 1.359 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003974/0.007712, allocations: 197.2 kB / 331.7 MB, free: 1.145 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.571e-05/0.007748, allocations: 63.34 kB / 331.7 MB, free: 1.062 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.249e-05/0.007781, allocations: 21.2 kB / 331.7 MB, free: 1.043 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.598e-05/0.007837, allocations: 63.36 kB / 331.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.007837, allocations: 4 kB / 331.8 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of Templates: time 0.00262/0.01046, allocations: 1.123 MB / 332.9 MB, free: 15.88 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.7731703128665686]