Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.001029/0.001029, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.00109/0.00109, allocations: 161 kB / 24.56 MB, free: 12 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.062/1.062, allocations: 177.1 MB / 205 MB, free: 5.605 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.2703/0.2703, allocations: 32.79 MB / 294.3 MB, free: 1.285 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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 376 MB, free: 4.676 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.032e-05/3.227e-05, allocations: 5.688 kB / 376 MB, free: 4.672 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003313/0.003346, allocations: 1.658 MB / 377.7 MB, free: 3 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.004425, allocations: 0.4986 MB / 378.2 MB, free: 2.496 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.00454, allocations: 3.938 kB / 378.2 MB, free: 2.492 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001452/0.004685, allocations: 7.922 kB / 378.2 MB, free: 2.484 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.432e-05/0.00475, allocations: 15.81 kB / 378.2 MB, free: 2.469 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.005005, allocations: 43.83 kB / 378.2 MB, free: 2.426 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001733/0.005178, allocations: 75.77 kB / 378.3 MB, free: 2.352 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.005314, allocations: 24.2 kB / 378.3 MB, free: 2.328 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.903e-05/0.005413, allocations: 43.91 kB / 378.4 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.392e-05/0.005487, allocations: 27.89 kB / 378.4 MB, free: 2.258 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.437e-05/0.005512, allocations: 4 kB / 378.4 MB, free: 2.254 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.669e-05/0.005528, allocations: 8 kB / 378.4 MB, free: 2.246 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.884e-05/0.005557, allocations: 7.938 kB / 378.4 MB, free: 2.238 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.822e-05/0.005605, allocations: 27.92 kB / 378.4 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001784/0.005784, allocations: 55.73 kB / 378.5 MB, free: 2.156 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.005788, allocations: 0 / 378.5 MB, free: 2.156 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.005789, allocations: 0 / 378.5 MB, free: 2.156 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.005796, allocations: 7.875 kB / 378.5 MB, free: 2.148 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005974/0.006393, allocations: 432 kB / 378.9 MB, free: 1.688 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.006438, allocations: 8.031 kB / 378.9 MB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.704e-05/0.006495, allocations: 16.89 kB / 378.9 MB, free: 1.664 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001864/0.006681, allocations: 140.5 kB / 379.1 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.006703, allocations: 384 / 379.1 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.517e-05/0.006738, allocations: 12.38 kB / 379.1 MB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.006916, allocations: 74.88 kB / 379.2 MB, free: 1.406 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.006928, allocations: 4.188 kB / 379.2 MB, free: 1.402 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.006947, allocations: 4.375 kB / 379.2 MB, free: 1.398 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.006962, allocations: 11.94 kB / 379.2 MB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.048e-05/0.007043, allocations: 19.98 kB / 379.2 MB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008025/0.007845, allocations: 335.4 kB / 379.5 MB, free: 1.004 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.008002, allocations: 47.08 kB / 379.6 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.268e-05/0.008045, allocations: 15.69 kB / 379.6 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.008061, allocations: 0 / 379.6 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001823/0.008243, allocations: 69.03 kB / 379.7 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.154e-06/0.008245, allocations: 0 / 379.7 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002847/0.00853, allocations: 81.61 kB / 379.7 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.008592, allocations: 59.41 kB / 379.8 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.008739, allocations: 177.9 kB / 380 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.008762, allocations: 25.7 kB / 380 MB, free: 476 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.341e-05/0.008855, allocations: 155.1 kB / 380.2 MB, free: 316 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.008884, allocations: 11.89 kB / 380.2 MB, free: 304 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.817e-05/0.008943, allocations: 31.38 kB / 380.2 MB, free: 264 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.009143, allocations: 0.4961 MB / 380.7 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.042e-05/0.009183, allocations: 11.94 kB / 380.7 MB, free: 15.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.443e-05/0.009238, allocations: 39.05 kB / 380.7 MB, free: 15.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.238e-05/0.00932, allocations: 58.98 kB / 380.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.009323, allocations: 3.938 kB / 380.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001534/0.009476, allocations: 81.88 kB / 380.9 MB, free: 15.53 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.009498, allocations: 6.031 kB / 380.9 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.009505, allocations: 0 / 380.9 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.009529, allocations: 4 kB / 380.9 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.009648, allocations: 8 kB / 380.9 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.009659, allocations: 4.062 kB / 380.9 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.166e-05/0.009721, allocations: 11.98 kB / 380.9 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.009733, allocations: 12 kB / 380.9 MB, free: 15.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001067/0.00984, allocations: 159.3 kB / 381.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.362e-05/0.009864, allocations: 15.89 kB / 381.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.074e-05/0.009914, allocations: 8.438 kB / 381.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.009918, allocations: 0 / 381.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.009925, allocations: 0 / 381.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.00993, allocations: 4 kB / 381.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004329/0.01036, allocations: 333.3 kB / 381.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.01037, allocations: 0 / 381.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.302e-05/0.01044, allocations: 7.984 kB / 381.4 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.01044, allocations: 7.938 kB / 381.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.01046, allocations: 0 / 381.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.01046, allocations: 4 kB / 381.5 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.01047, allocations: 7.922 kB / 381.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.01075, allocations: 223.9 kB / 381.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.704e-05/0.01078, allocations: 11.95 kB / 381.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.0108, allocations: 4 kB / 381.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.09e-05/0.01088, allocations: 4 kB / 381.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.042e-05/0.01094, allocations: 7.922 kB / 381.7 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.01095, allocations: 11.98 kB / 381.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.861e-05/0.01102, allocations: 135.6 kB / 381.9 MB, free: 14.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01102, allocations: 3.938 kB / 381.9 MB, free: 14.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002516/0.01127, allocations: 16 kB / 381.9 MB, free: 14.46 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,fallingEdge.not_u,booleanPulse.pulseStart) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001241/0.0114, allocations: 95.52 kB / 382 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001474/0.01154, allocations: 39.67 kB / 382 MB, free: 14.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.01155, allocations: 0 / 382 MB, free: 14.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.414e-05/0.0116, allocations: 31.61 kB / 382 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003278/0.01193, allocations: 19.92 kB / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000488/0.01242, allocations: 206.3 kB / 382.3 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.388e-05/0.01247, allocations: 63.34 kB / 382.3 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.571e-05/0.01251, allocations: 4 kB / 382.3 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.135e-05/0.01255, allocations: 12.5 kB / 382.3 MB, free: 13.94 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.01255, allocations: 0 / 382.3 MB, free: 13.94 MB / 362.7 MB Notification: Performance of Templates: time 0.003744/0.01629, allocations: 0.935 MB / 383.3 MB, free: 13.02 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.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.3142576492391527]