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.001985/0.001985, allocations: 92.97 kB / 20.21 MB, free: 4.211 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.002107/0.002107, allocations: 165.2 kB / 23.53 MB, free: 0.8984 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.436/1.436, allocations: 158.6 MB / 185.3 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] 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.336/0.336, allocations: 32.38 MB / 270 MB, free: 14.75 MB / 266.7 MB " [Timeout remaining time 179] 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.775e-06/2.775e-06, allocations: 0 / 346.9 MB, free: 9.816 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.252e-05/5.529e-05, allocations: 6.25 kB / 346.9 MB, free: 9.809 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003644/0.003699, allocations: 1.529 MB / 348.5 MB, free: 8.273 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.004892, allocations: 0.523 MB / 349 MB, free: 7.742 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.941e-05/0.004972, allocations: 0 / 349 MB, free: 7.742 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.359e-05/0.005015, allocations: 7.875 kB / 349 MB, free: 7.734 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.005183, allocations: 11.86 kB / 349 MB, free: 7.723 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003134/0.005497, allocations: 35.89 kB / 349 MB, free: 7.688 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001605/0.005657, allocations: 91.69 kB / 349.1 MB, free: 7.598 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.005834, allocations: 11.94 kB / 349.1 MB, free: 7.586 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002187/0.006053, allocations: 55.88 kB / 349.2 MB, free: 7.531 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.006171, allocations: 27.89 kB / 349.2 MB, free: 7.504 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.627e-05/0.006208, allocations: 12 kB / 349.2 MB, free: 7.492 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.329e-05/0.006231, allocations: 8 kB / 349.2 MB, free: 7.484 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.611e-05/0.006277, allocations: 23.91 kB / 349.3 MB, free: 7.461 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.979e-05/0.006347, allocations: 23.91 kB / 349.3 MB, free: 7.438 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.006549, allocations: 79.7 kB / 349.4 MB, free: 7.359 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.006555, allocations: 0 / 349.4 MB, free: 7.359 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.006557, allocations: 0 / 349.4 MB, free: 7.359 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.006566, allocations: 0 / 349.4 MB, free: 7.359 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.0009187/0.007485, allocations: 440 kB / 349.8 MB, free: 6.895 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.966e-05/0.007555, allocations: 8.031 kB / 349.8 MB, free: 6.887 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.072e-05/0.007646, allocations: 16.89 kB / 349.8 MB, free: 6.871 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.007809, allocations: 116.5 kB / 349.9 MB, free: 6.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.902e-05/0.007838, allocations: 8.375 kB / 349.9 MB, free: 6.723 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/0.007864, allocations: 16.3 kB / 349.9 MB, free: 6.707 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002349/0.008099, allocations: 74.22 kB / 350 MB, free: 6.629 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.008115, allocations: 192 / 350 MB, free: 6.629 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.008135, allocations: 8.375 kB / 350 MB, free: 6.621 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.008144, allocations: 3.938 kB / 350 MB, free: 6.617 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.008266, allocations: 43.97 kB / 350.1 MB, free: 6.574 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006407/0.008907, allocations: 307.7 kB / 350.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002304/0.009137, allocations: 86.97 kB / 350.5 MB, free: 6.141 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.492e-05/0.009222, allocations: 39.67 kB / 350.5 MB, free: 6.098 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.16e-05/0.009264, allocations: 4 kB / 350.5 MB, free: 6.094 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000203/0.009467, allocations: 112 kB / 350.6 MB, free: 5.973 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.009468, allocations: 3.938 kB / 350.6 MB, free: 5.969 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005056/0.009974, allocations: 189.5 kB / 350.8 MB, free: 5.777 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/0.01003, allocations: 59.41 kB / 350.9 MB, free: 5.707 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.01015, allocations: 181.9 kB / 351 MB, free: 5.512 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.01017, allocations: 29.7 kB / 351.1 MB, free: 5.477 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.521e-05/0.01024, allocations: 143.1 kB / 351.2 MB, free: 5.332 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.714e-05/0.01028, allocations: 43.72 kB / 351.2 MB, free: 5.289 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.377e-05/0.01035, allocations: 43.38 kB / 351.3 MB, free: 5.238 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.01047, allocations: 0.4962 MB / 351.8 MB, free: 4.73 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.893e-05/0.01055, allocations: 31.98 kB / 351.8 MB, free: 4.699 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.01066, allocations: 98.03 kB / 351.9 MB, free: 4.578 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.01083, allocations: 142 kB / 352.1 MB, free: 4.414 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.01083, allocations: 0 / 352.1 MB, free: 4.414 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002587/0.01109, allocations: 169.4 kB / 352.2 MB, free: 4.242 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.01112, allocations: 4 kB / 352.2 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.01113, allocations: 8.156 kB / 352.2 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.854e-05/0.01116, allocations: 0 / 352.2 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.01129, allocations: 27.92 kB / 352.3 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.0113, allocations: 4 kB / 352.3 MB, free: 4.199 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.055e-05/0.01136, allocations: 15.92 kB / 352.3 MB, free: 4.184 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.01138, allocations: 4 kB / 352.3 MB, free: 4.18 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 0.0001269/0.0115, allocations: 182.4 kB / 352.5 MB, free: 3.988 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.472e-05/0.01153, allocations: 11.95 kB / 352.5 MB, free: 3.977 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.308e-05/0.01157, allocations: 8.438 kB / 352.5 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.01158, allocations: 4 kB / 352.5 MB, free: 3.969 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.01158, allocations: 4 kB / 352.5 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.01159, allocations: 3.984 kB / 352.5 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005102/0.0121, allocations: 441.2 kB / 352.9 MB, free: 3.488 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.0121, allocations: 0 / 352.9 MB, free: 3.488 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.746e-05/0.01215, allocations: 15.92 kB / 352.9 MB, free: 3.473 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.01215, allocations: 0 / 352.9 MB, free: 3.473 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.01217, allocations: 0 / 352.9 MB, free: 3.473 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.01217, allocations: 4 kB / 352.9 MB, free: 3.469 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01217, allocations: 4 kB / 352.9 MB, free: 3.465 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.01246, allocations: 314.9 kB / 353.3 MB, free: 3.141 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.702e-05/0.01248, allocations: 15.89 kB / 353.3 MB, free: 3.125 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.127e-05/0.01251, allocations: 11.98 kB / 353.3 MB, free: 3.113 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.01261, allocations: 4 kB / 353.3 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.848e-05/0.01268, allocations: 11.92 kB / 353.3 MB, free: 3.098 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.544e-05/0.01272, allocations: 11.98 kB / 353.3 MB, free: 3.086 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.237e-05/0.01278, allocations: 135.1 kB / 353.4 MB, free: 2.953 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01278, allocations: 0 / 353.4 MB, free: 2.953 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003002/0.01308, allocations: 23.98 kB / 353.5 MB, free: 2.93 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 0.0001768/0.01326, allocations: 95.25 kB / 353.6 MB, free: 2.824 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003032/0.01356, allocations: 119.9 kB / 353.7 MB, free: 2.703 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.01356, allocations: 0 / 353.7 MB, free: 2.703 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.01368, allocations: 59.59 kB / 353.7 MB, free: 2.641 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003662/0.01405, allocations: 12 kB / 353.7 MB, free: 2.629 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000619/0.01467, allocations: 214.2 kB / 354 MB, free: 2.391 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.78e-05/0.01476, allocations: 79.64 kB / 354 MB, free: 2.293 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.428e-05/0.01481, allocations: 16.95 kB / 354 MB, free: 2.277 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.7e-05/0.01487, allocations: 12.5 kB / 354.1 MB, free: 2.266 MB / 282.7 MB Notification: Performance of SimCode: time 1.213e-06/0.01487, allocations: 3.938 kB / 354.1 MB, free: 2.262 MB / 282.7 MB Notification: Performance of Templates: time 0.005405/0.02028, allocations: 1.047 MB / 355.1 MB, free: 1.234 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.580770133063197]