Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001795/0.001795, allocations: 88.2 kB / 20.94 MB, free: 3.602 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.001741/0.001741, allocations: 173 kB / 24.25 MB, free: 308 kB / 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.251/1.251, allocations: 158.6 MB / 186 MB, free: 2.539 MB / 170.7 MB " [Timeout remaining time 179] 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.187/0.187, allocations: 32.37 MB / 270.7 MB, free: 14.74 MB / 266.7 MB " [Timeout remaining time 180] 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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 347.7 MB, free: 9.777 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.223e-05/2.373e-05, allocations: 4.281 kB / 347.7 MB, free: 9.773 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002003/0.002027, allocations: 1.647 MB / 349.3 MB, free: 8.121 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007779/0.002805, allocations: 0.5035 MB / 349.8 MB, free: 7.609 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.002914, allocations: 7.938 kB / 349.8 MB, free: 7.602 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.003064, allocations: 11.86 kB / 349.8 MB, free: 7.59 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.895e-05/0.003113, allocations: 7.875 kB / 349.8 MB, free: 7.582 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002051/0.003318, allocations: 39.83 kB / 349.9 MB, free: 7.543 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001377/0.003456, allocations: 87.69 kB / 350 MB, free: 7.457 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.00359, allocations: 24.12 kB / 350 MB, free: 7.434 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.824e-05/0.003659, allocations: 43.91 kB / 350 MB, free: 7.391 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.992e-05/0.003729, allocations: 27.89 kB / 350.1 MB, free: 7.363 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.975e-05/0.003758, allocations: 8 kB / 350.1 MB, free: 7.355 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.28e-05/0.003771, allocations: 8 kB / 350.1 MB, free: 7.348 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.691e-05/0.003798, allocations: 11.92 kB / 350.1 MB, free: 7.336 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.055e-05/0.003839, allocations: 27.91 kB / 350.1 MB, free: 7.309 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.003979, allocations: 55.75 kB / 350.2 MB, free: 7.254 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.003981, allocations: 0 / 350.2 MB, free: 7.254 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.003982, allocations: 0 / 350.2 MB, free: 7.254 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.003988, allocations: 0 / 350.2 MB, free: 7.254 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004775/0.004465, allocations: 428 kB / 350.6 MB, free: 6.797 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.004506, allocations: 12.03 kB / 350.6 MB, free: 6.785 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.588e-05/0.004562, allocations: 20.89 kB / 350.6 MB, free: 6.766 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/0.004736, allocations: 140.5 kB / 350.7 MB, free: 6.602 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.004758, allocations: 4.375 kB / 350.8 MB, free: 6.598 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.295e-05/0.00478, allocations: 8.375 kB / 350.8 MB, free: 6.59 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.004895, allocations: 80.98 kB / 350.8 MB, free: 6.504 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.004904, allocations: 192 / 350.8 MB, free: 6.504 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.004917, allocations: 8.359 kB / 350.8 MB, free: 6.496 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.004927, allocations: 3.938 kB / 350.9 MB, free: 6.492 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.312e-05/0.00498, allocations: 19.98 kB / 350.9 MB, free: 6.473 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003963/0.005376, allocations: 331.5 kB / 351.2 MB, free: 6.113 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.849e-05/0.005455, allocations: 50.98 kB / 351.2 MB, free: 6.051 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.53e-05/0.00548, allocations: 19.75 kB / 351.3 MB, free: 6.027 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.889e-06/0.00549, allocations: 3.984 kB / 351.3 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.596e-05/0.005586, allocations: 72.97 kB / 351.3 MB, free: 5.938 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.005587, allocations: 4 kB / 351.3 MB, free: 5.934 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001806/0.005767, allocations: 69.64 kB / 351.4 MB, free: 5.859 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.06e-05/0.005798, allocations: 55.41 kB / 351.5 MB, free: 5.793 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.168e-05/0.00587, allocations: 185.8 kB / 351.6 MB, free: 5.594 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.276e-06/0.005878, allocations: 29.7 kB / 351.7 MB, free: 5.559 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.005917, allocations: 151 kB / 351.8 MB, free: 5.406 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/0.00594, allocations: 15.98 kB / 351.8 MB, free: 5.391 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.005971, allocations: 35.3 kB / 351.9 MB, free: 5.348 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.541e-05/0.006026, allocations: 0.4922 MB / 352.4 MB, free: 4.844 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.166e-05/0.006048, allocations: 11.98 kB / 352.4 MB, free: 4.832 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.086e-05/0.006079, allocations: 39.05 kB / 352.4 MB, free: 4.781 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.743e-05/0.006126, allocations: 54.98 kB / 352.5 MB, free: 4.715 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.006128, allocations: 4 kB / 352.5 MB, free: 4.711 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 7.136e-05/0.0062, allocations: 77.89 kB / 352.5 MB, free: 4.629 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.006212, allocations: 4 kB / 352.6 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.006219, allocations: 4.078 kB / 352.6 MB, free: 4.621 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.006236, allocations: 0 / 352.6 MB, free: 4.621 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.619e-05/0.006302, allocations: 11.98 kB / 352.6 MB, free: 4.609 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.006308, allocations: 3.984 kB / 352.6 MB, free: 4.605 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.995e-05/0.006338, allocations: 8 kB / 352.6 MB, free: 4.598 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.006345, allocations: 7.938 kB / 352.6 MB, free: 4.59 MB / 282.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 5.489e-05/0.0064, allocations: 168.6 kB / 352.8 MB, free: 4.414 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.337e-06/0.006409, allocations: 7.953 kB / 352.8 MB, free: 4.406 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.623e-05/0.006435, allocations: 12.42 kB / 352.8 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.006438, allocations: 4 kB / 352.8 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.006443, allocations: 0 / 352.8 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.006447, allocations: 0 / 352.8 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000236/0.006683, allocations: 337.3 kB / 353.1 MB, free: 4.023 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.006685, allocations: 4 kB / 353.1 MB, free: 4.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.182e-05/0.006727, allocations: 7.938 kB / 353.1 MB, free: 4.012 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.006729, allocations: 0 / 353.1 MB, free: 4.012 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.006742, allocations: 4 kB / 353.1 MB, free: 4.008 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.006744, allocations: 4 kB / 353.1 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.006745, allocations: 3.938 kB / 353.1 MB, free: 4 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.006893, allocations: 219.9 kB / 353.3 MB, free: 3.766 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.145e-05/0.006904, allocations: 15.89 kB / 353.4 MB, free: 3.75 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.006919, allocations: 3.984 kB / 353.4 MB, free: 3.746 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.282e-05/0.006962, allocations: 4 kB / 353.4 MB, free: 3.742 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.007006, allocations: 11.92 kB / 353.4 MB, free: 3.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.007011, allocations: 4 kB / 353.4 MB, free: 3.727 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.625e-05/0.007037, allocations: 131.2 kB / 353.5 MB, free: 3.598 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007037, allocations: 0 / 353.5 MB, free: 3.598 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001504/0.007188, allocations: 24.03 kB / 353.5 MB, free: 3.574 MB / 282.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.003e-05/0.007258, allocations: 95.19 kB / 353.6 MB, free: 3.469 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001055/0.007363, allocations: 43.64 kB / 353.7 MB, free: 3.422 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.007366, allocations: 4 kB / 353.7 MB, free: 3.418 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.697e-05/0.007403, allocations: 27.62 kB / 353.7 MB, free: 3.387 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.007627, allocations: 15.98 kB / 353.7 MB, free: 3.371 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003512/0.007978, allocations: 209.2 kB / 353.9 MB, free: 3.141 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.885e-05/0.008007, allocations: 64.17 kB / 354 MB, free: 3.059 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.534e-05/0.008032, allocations: 4 kB / 354 MB, free: 3.055 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.125e-05/0.008064, allocations: 12.5 kB / 354 MB, free: 3.043 MB / 282.7 MB Notification: Performance of SimCode: time 4.81e-07/0.008064, allocations: 0 / 354 MB, free: 3.043 MB / 282.7 MB Notification: Performance of Templates: time 0.002839/0.0109, allocations: 0.9566 MB / 355 MB, free: 2.105 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.6563625461421907]