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.001399/0.001399, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001139/0.001139, allocations: 163.6 kB / 24.99 MB, free: 8.746 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 0.9968/0.9968, allocations: 177.1 MB / 205.3 MB, free: 5.629 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.2694/0.2694, allocations: 34.26 MB / 296 MB, free: 0.6602 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.613e-06/1.613e-06, allocations: 0 / 378 MB, free: 2.949 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.661e-05/2.822e-05, allocations: 2.312 kB / 378 MB, free: 2.945 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002852/0.00288, allocations: 1.653 MB / 379.7 MB, free: 1.277 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008704/0.00375, allocations: 0.4946 MB / 380.2 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.251e-05/0.003843, allocations: 0 / 380.2 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.00397, allocations: 11.88 kB / 380.2 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.19e-05/0.004022, allocations: 11.86 kB / 380.2 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002009/0.004223, allocations: 43.83 kB / 380.2 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001445/0.004368, allocations: 71.78 kB / 380.3 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.004491, allocations: 20.22 kB / 380.3 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.264e-05/0.004574, allocations: 47.89 kB / 380.4 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.64e-05/0.00464, allocations: 23.91 kB / 380.4 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.004665, allocations: 4 kB / 380.4 MB, free: 0.543 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.348e-05/0.004678, allocations: 8 kB / 380.4 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.836e-05/0.004707, allocations: 19.91 kB / 380.4 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.515e-05/0.004752, allocations: 23.92 kB / 380.4 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001421/0.004894, allocations: 59.67 kB / 380.5 MB, free: 444 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.004897, allocations: 4 kB / 380.5 MB, free: 440 kB / 346.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.004898, allocations: 0 / 380.5 MB, free: 440 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.004902, allocations: 4 kB / 380.5 MB, free: 436 kB / 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.0005364/0.005439, allocations: 419.7 kB / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.005482, allocations: 15.97 kB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.574e-05/0.005538, allocations: 12.89 kB / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.005747, allocations: 144.4 kB / 381.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.005767, allocations: 4.375 kB / 381.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.616e-05/0.005793, allocations: 8.375 kB / 381.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001435/0.005937, allocations: 78.94 kB / 381.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.005947, allocations: 4.172 kB / 381.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.005961, allocations: 0.75 kB / 381.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.005969, allocations: 0 / 381.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.675e-05/0.006036, allocations: 27.92 kB / 381.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004779/0.006514, allocations: 335.4 kB / 381.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.86e-05/0.006612, allocations: 43.06 kB / 381.6 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.682e-05/0.006649, allocations: 19.69 kB / 381.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.006658, allocations: 0 / 381.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001218/0.00678, allocations: 73.05 kB / 381.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.006782, allocations: 0 / 381.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002066/0.006988, allocations: 69.88 kB / 381.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.00703, allocations: 59.34 kB / 381.8 MB, free: 14.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.007142, allocations: 181.8 kB / 382 MB, free: 14.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.00716, allocations: 33.7 kB / 382 MB, free: 14.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.106e-05/0.007231, allocations: 155.1 kB / 382.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/0.007252, allocations: 11.91 kB / 382.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.914e-05/0.007301, allocations: 35.36 kB / 382.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.007441, allocations: 0.4961 MB / 382.7 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.03e-05/0.007472, allocations: 12 kB / 382.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.725e-05/0.007519, allocations: 39.05 kB / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.419e-05/0.007593, allocations: 55.06 kB / 382.8 MB, free: 13.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.007596, allocations: 0 / 382.8 MB, free: 13.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001259/0.007722, allocations: 81.52 kB / 382.9 MB, free: 13.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.007737, allocations: 5.875 kB / 382.9 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.007743, allocations: 4 kB / 382.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.007757, allocations: 0 / 382.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.082e-05/0.007828, allocations: 16.05 kB / 382.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.007834, allocations: 0 / 382.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.429e-05/0.007878, allocations: 7.953 kB / 382.9 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.007889, allocations: 8 kB / 382.9 MB, free: 13.77 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 8.664e-05/0.007975, allocations: 175 kB / 383.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.875e-05/0.007994, allocations: 11.98 kB / 383.1 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.887e-05/0.008023, allocations: 8.438 kB / 383.1 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.008027, allocations: 7.984 kB / 383.1 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.008032, allocations: 0 / 383.1 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.008035, allocations: 0 / 383.1 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003114/0.008346, allocations: 337.3 kB / 383.4 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.008348, allocations: 0 / 383.4 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.248e-05/0.008391, allocations: 4 kB / 383.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.008393, allocations: 0 / 383.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.008405, allocations: 8 kB / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.008408, allocations: 0 / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.00841, allocations: 3.984 kB / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001987/0.008609, allocations: 223.8 kB / 383.7 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.469e-05/0.008623, allocations: 11.94 kB / 383.7 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.689e-05/0.00864, allocations: 4 kB / 383.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.511e-05/0.008705, allocations: 4 kB / 383.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.787e-05/0.008753, allocations: 15.95 kB / 383.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.00876, allocations: 3.938 kB / 383.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.631e-05/0.008816, allocations: 135.2 kB / 383.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008816, allocations: 0 / 383.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002658/0.009082, allocations: 16 kB / 383.9 MB, free: 12.75 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 9.09e-05/0.009173, allocations: 95.19 kB / 384 MB, free: 12.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001222/0.009295, allocations: 47.59 kB / 384 MB, free: 12.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.009297, allocations: 0 / 384 MB, free: 12.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.501e-05/0.009342, allocations: 27.69 kB / 384 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.009653, allocations: 16.66 kB / 384.1 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004063/0.01006, allocations: 202.2 kB / 384.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.624e-05/0.01011, allocations: 67.28 kB / 384.3 MB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.181e-05/0.01014, allocations: 7.984 kB / 384.3 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.522e-05/0.01017, allocations: 12.5 kB / 384.3 MB, free: 12.22 MB / 362.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01017, allocations: 0 / 384.3 MB, free: 12.22 MB / 362.7 MB Notification: Performance of Templates: time 0.003355/0.01353, allocations: 0.9305 MB / 385.3 MB, free: 11.3 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: 2.9122757168952376]