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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 110.4 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 183.8 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2082/0.2082, allocations: 44.18 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 59.89 kB / 470.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3491, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00304/0.3522, allocations: 1.613 MB / 0.5205 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009416/0.3532, allocations: 483.8 kB / 0.5209 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.3533, allocations: 2.031 kB / 0.5209 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.3535, allocations: 22.48 kB / 0.5209 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.956e-05/0.3536, allocations: 10.58 kB / 0.521 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002227/0.3538, allocations: 36.61 kB / 0.521 GB, free: 2.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.354, allocations: 80.44 kB / 0.5211 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.3541, allocations: 33.61 kB / 0.5211 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.452e-05/0.3542, allocations: 29.55 kB / 0.5211 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.687e-05/0.3543, allocations: 33.78 kB / 0.5212 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/0.3543, allocations: 6 kB / 0.5212 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.709e-05/0.3543, allocations: 7.125 kB / 0.5212 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.73e-05/0.3544, allocations: 18.14 kB / 0.5212 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.12e-05/0.3544, allocations: 34.44 kB / 0.5212 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.3546, allocations: 79.31 kB / 0.5213 GB, free: 1.938 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3546, allocations: 0 / 0.5213 GB, free: 1.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3546, allocations: 0 / 0.5213 GB, free: 1.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.3546, allocations: 1.406 kB / 0.5213 GB, free: 1.938 MB / 382.1 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.0005845/0.3552, allocations: 393.4 kB / 0.5217 GB, free: 1.551 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.3552, allocations: 9.469 kB / 0.5217 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.599e-05/0.3553, allocations: 14.41 kB / 0.5217 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002327/0.3555, allocations: 197.8 kB / 0.5219 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.3556, allocations: 8.219 kB / 0.5219 GB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.3556, allocations: 6.156 kB / 0.5219 GB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.3558, allocations: 75.95 kB / 0.522 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.3558, allocations: 1.062 kB / 0.522 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.3558, allocations: 9.734 kB / 0.522 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.3558, allocations: 5.141 kB / 0.522 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.964e-05/0.3559, allocations: 35.77 kB / 0.522 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005558/0.3565, allocations: 350.5 kB / 0.5224 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.3566, allocations: 52.09 kB / 0.5224 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.546e-05/0.3566, allocations: 24.05 kB / 0.5224 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.297e-05/0.3567, allocations: 1.125 kB / 0.5224 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001194/0.3568, allocations: 67.38 kB / 0.5225 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.3568, allocations: 0 / 0.5225 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002186/0.357, allocations: 96.02 kB / 0.5226 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.3571, allocations: 58.5 kB / 0.5226 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.419e-05/0.3572, allocations: 137.4 kB / 0.5228 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.3572, allocations: 27.34 kB / 0.5228 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.861e-05/0.3572, allocations: 102.2 kB / 0.5229 GB, free: 468 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.3573, allocations: 20.81 kB / 0.5229 GB, free: 452 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-05/0.3573, allocations: 24.14 kB / 0.5229 GB, free: 432 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.982e-05/0.3574, allocations: 320.2 kB / 0.5232 GB, free: 108 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.124e-05/0.3574, allocations: 18.17 kB / 0.5233 GB, free: 100 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.404e-05/0.3575, allocations: 34.12 kB / 0.5233 GB, free: 72 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.693e-05/0.3575, allocations: 62.03 kB / 0.5234 GB, free: 20 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3575, allocations: 0 / 0.5234 GB, free: 20 kB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001544/0.3577, allocations: 83.48 kB / 0.5234 GB, free: 15.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3577, allocations: 6.688 kB / 0.5234 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.3577, allocations: 1 kB / 0.5234 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.3578, allocations: 5.062 kB / 0.5234 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.163e-05/0.3579, allocations: 7.328 kB / 0.5235 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3579, allocations: 6.047 kB / 0.5235 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.335e-05/0.358, allocations: 14.28 kB / 0.5235 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.358, allocations: 3.25 kB / 0.5235 GB, free: 15.95 MB / 398.1 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,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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.0001091/0.3581, allocations: 118.7 kB / 0.5236 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.809e-05/0.3581, allocations: 8.797 kB / 0.5236 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.684e-05/0.3582, allocations: 15.67 kB / 0.5236 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3582, allocations: 1.734 kB / 0.5236 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3582, allocations: 1.219 kB / 0.5236 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.3582, allocations: 0.7031 kB / 0.5236 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003893/0.3586, allocations: 356.6 kB / 0.524 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3586, allocations: 0 / 0.524 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.021e-05/0.3587, allocations: 4.266 kB / 0.524 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.247e-06/0.3587, allocations: 1.672 kB / 0.524 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.3587, allocations: 0.875 kB / 0.524 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3587, allocations: 1.969 kB / 0.524 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3587, allocations: 0 / 0.524 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000239/0.3589, allocations: 192.6 kB / 0.5241 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.29e-05/0.359, allocations: 89.05 kB / 0.5242 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.359, allocations: 6.516 kB / 0.5242 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.038e-05/0.3591, allocations: 4.984 kB / 0.5242 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.3592, allocations: 7.531 kB / 0.5242 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.475e-06/0.3592, allocations: 6.25 kB / 0.5243 GB, free: 15.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.031e-05/0.3593, allocations: 114.8 kB / 0.5244 GB, free: 15.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3593, allocations: 0 / 0.5244 GB, free: 15.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002433/0.3596, allocations: 11.56 kB / 0.5244 GB, free: 15.11 MB / 398.1 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,booleanPulse.pulseStart,fallingEdge.not_u) * 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.0001069/0.3597, allocations: 105.7 kB / 0.5245 GB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001542/0.3598, allocations: 45.19 kB / 0.5245 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3598, allocations: 0 / 0.5245 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.001e-05/0.3599, allocations: 24.62 kB / 0.5245 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.3603, allocations: 27.77 kB / 0.5246 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006121/0.3609, allocations: 216.9 kB / 0.5248 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.3612, allocations: 0.6955 MB / 0.5255 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.606e-05/0.3612, allocations: 7.547 kB / 0.5255 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.58e-05/0.3613, allocations: 12.16 kB / 0.5255 GB, free: 14.11 MB / 398.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3613, allocations: 3.938 kB / 0.5255 GB, free: 14.11 MB / 398.1 MB Notification: Performance of Templates: time 0.004031/0.3653, allocations: 0.9784 MB / 0.5264 GB, free: 14 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches