Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001038/0.001038, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001534/0.001534, allocations: 166 kB / 24.82 MB, free: 9.266 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 1.026/1.026, allocations: 177.1 MB / 205.3 MB, free: 5.465 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.28/0.28, allocations: 34.27 MB / 296.1 MB, free: 0.7188 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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.694e-06/1.694e-06, allocations: 0 / 378.5 MB, free: 2.418 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.166e-05/2.336e-05, allocations: 5.547 kB / 378.5 MB, free: 2.414 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002982/0.003006, allocations: 1.661 MB / 380.1 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.004019, allocations: 498.5 kB / 380.6 MB, free: 252 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.004135, allocations: 4 kB / 380.6 MB, free: 248 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.004272, allocations: 7.875 kB / 380.6 MB, free: 240 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.04e-05/0.004332, allocations: 15.86 kB / 380.7 MB, free: 224 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000205/0.004537, allocations: 39.83 kB / 380.7 MB, free: 184 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.004681, allocations: 83.77 kB / 380.8 MB, free: 100 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.004799, allocations: 20.22 kB / 380.8 MB, free: 76 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.602e-05/0.004885, allocations: 43.83 kB / 380.8 MB, free: 32 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.143e-05/0.004957, allocations: 23.91 kB / 380.9 MB, free: 8 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.00498, allocations: 8 kB / 380.9 MB, free: 0 / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.76e-05/0.005008, allocations: 4.047 kB / 380.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 3.097e-05/0.005039, allocations: 23.86 kB / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.868e-05/0.005078, allocations: 19.92 kB / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.005228, allocations: 59.75 kB / 381 MB, free: 15.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.00523, allocations: 0 / 381 MB, free: 15.89 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.005231, allocations: 4 kB / 381 MB, free: 15.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.005236, allocations: 0 / 381 MB, free: 15.89 MB / 362.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.0005231/0.005759, allocations: 428 kB / 381.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.005808, allocations: 8.031 kB / 381.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.975e-05/0.005858, allocations: 16.89 kB / 381.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.006044, allocations: 140.4 kB / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.006066, allocations: 8.312 kB / 381.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.294e-05/0.006088, allocations: 8.375 kB / 381.6 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001306/0.006219, allocations: 66.94 kB / 381.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.006228, allocations: 8.188 kB / 381.7 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.006245, allocations: 12.36 kB / 381.7 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.006252, allocations: 3.938 kB / 381.7 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.78e-05/0.0063, allocations: 19.92 kB / 381.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004543/0.006754, allocations: 312.1 kB / 382 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.545e-05/0.00684, allocations: 43.03 kB / 382 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.143e-05/0.006861, allocations: 15.72 kB / 382.1 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.006869, allocations: 0 / 382.1 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001067/0.006976, allocations: 65.08 kB / 382.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.006977, allocations: 8 kB / 382.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001832/0.007161, allocations: 73.8 kB / 382.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.007202, allocations: 51.41 kB / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.007306, allocations: 181.9 kB / 382.4 MB, free: 14.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.007324, allocations: 29.7 kB / 382.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.551e-05/0.007399, allocations: 155.1 kB / 382.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.557e-05/0.007425, allocations: 19.88 kB / 382.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.697e-05/0.007472, allocations: 27.38 kB / 382.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.007627, allocations: 0.4922 MB / 383.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.391e-05/0.007651, allocations: 8 kB / 383.1 MB, free: 13.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.298e-05/0.007694, allocations: 46.97 kB / 383.2 MB, free: 13.47 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.056e-05/0.007755, allocations: 47.11 kB / 383.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.007757, allocations: 0 / 383.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001167/0.007874, allocations: 81.56 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.007887, allocations: 6.5 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.007893, allocations: 0 / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.007909, allocations: 4 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.919e-05/0.007978, allocations: 11.94 kB / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.546e-06/0.007982, allocations: 4.062 kB / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.536e-05/0.008027, allocations: 7.938 kB / 383.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.008037, allocations: 7.984 kB / 383.4 MB, free: 13.29 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 9.489e-05/0.008132, allocations: 160.5 kB / 383.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.958e-05/0.008151, allocations: 11.95 kB / 383.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.539e-05/0.008187, allocations: 12.44 kB / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.008189, allocations: 0 / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.008191, allocations: 0 / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.008195, allocations: 0 / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003082/0.008504, allocations: 317.8 kB / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.008506, allocations: 0 / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.807e-05/0.008574, allocations: 8 kB / 383.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.008577, allocations: 0 / 383.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.008586, allocations: 0 / 383.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.008588, allocations: 0 / 383.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.008589, allocations: 0 / 383.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001615/0.008751, allocations: 231.7 kB / 384.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.213e-05/0.008763, allocations: 7.953 kB / 384.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.008775, allocations: 4 kB / 384.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.617e-05/0.008821, allocations: 11.98 kB / 384.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.226e-05/0.008853, allocations: 7.984 kB / 384.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-06/0.008857, allocations: 4.031 kB / 384.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.288e-05/0.0089, allocations: 131.6 kB / 384.2 MB, free: 12.33 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0089, allocations: 0 / 384.2 MB, free: 12.33 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001517/0.009052, allocations: 19.94 kB / 384.3 MB, free: 12.31 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 7.248e-05/0.009124, allocations: 91.58 kB / 384.4 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.922e-05/0.009203, allocations: 47.59 kB / 384.4 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.009205, allocations: 0 / 384.4 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.63e-05/0.009241, allocations: 23.61 kB / 384.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000194/0.009435, allocations: 28.59 kB / 384.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002751/0.00971, allocations: 194.2 kB / 384.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.744e-05/0.009748, allocations: 67.28 kB / 384.7 MB, free: 11.8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.63e-05/0.009774, allocations: 11.97 kB / 384.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.009828, allocations: 82.2 kB / 384.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.009828, allocations: 0 / 384.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of Templates: time 0.002514/0.01234, allocations: 1.001 MB / 385.8 MB, free: 10.72 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.1418516747653484]