Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002057/0.002057, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002544/0.002544, allocations: 204.6 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.57/1.57, allocations: 227.4 MB / 246.9 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2924/0.2924, allocations: 46.11 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 71.89 kB / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5518/0.5532, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.004146/0.5574, allocations: 1.62 MB / 0.5326 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.5586, allocations: 0.5165 MB / 0.5331 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.5587, allocations: 1.375 kB / 0.5331 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.5588, allocations: 7.875 kB / 0.5331 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.275e-05/0.5589, allocations: 17.17 kB / 0.5331 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.5592, allocations: 36.16 kB / 0.5331 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000184/0.5594, allocations: 74.09 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.5595, allocations: 36.5 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.113e-05/0.5596, allocations: 29.48 kB / 0.5333 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.882e-05/0.5598, allocations: 30.72 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.935e-05/0.5598, allocations: 5.5 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.898e-05/0.5598, allocations: 10.81 kB / 0.5333 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.625e-05/0.5599, allocations: 14.73 kB / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.169e-05/0.5599, allocations: 44.03 kB / 0.5334 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002102/0.5601, allocations: 73.06 kB / 0.5334 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.5602, allocations: 0 / 0.5334 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.686e-06/0.5602, allocations: 1.375 kB / 0.5334 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.5602, allocations: 0 / 0.5334 GB, free: 11.66 MB / 398.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.0007587/0.561, allocations: 392.9 kB / 0.5338 GB, free: 11.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.561, allocations: 13.56 kB / 0.5338 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.374e-05/0.5611, allocations: 14.38 kB / 0.5338 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003752/0.5615, allocations: 195.2 kB / 0.534 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.5615, allocations: 11.11 kB / 0.534 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.5615, allocations: 5.875 kB / 0.534 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.5618, allocations: 79.92 kB / 0.5341 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.5618, allocations: 0 / 0.5341 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.5618, allocations: 5.375 kB / 0.5341 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.5618, allocations: 1.375 kB / 0.5341 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001059/0.5619, allocations: 31.17 kB / 0.5341 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007487/0.5627, allocations: 359 kB / 0.5345 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001371/0.5628, allocations: 44.91 kB / 0.5345 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.238e-05/0.5629, allocations: 15.64 kB / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.5629, allocations: 0 / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001646/0.5631, allocations: 78.17 kB / 0.5346 GB, free: 10.47 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.5631, allocations: 1.188 kB / 0.5346 GB, free: 10.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002984/0.5634, allocations: 87.05 kB / 0.5347 GB, free: 10.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.5635, allocations: 53.25 kB / 0.5348 GB, free: 10.35 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.5636, allocations: 140 kB / 0.5349 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.5637, allocations: 26.3 kB / 0.5349 GB, free: 10.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.875e-05/0.5638, allocations: 99.89 kB / 0.535 GB, free: 10.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.726e-05/0.5638, allocations: 15.88 kB / 0.535 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.178e-05/0.5639, allocations: 32.7 kB / 0.5351 GB, free: 10.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.564, allocations: 317.2 kB / 0.5354 GB, free: 9.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.399e-05/0.5641, allocations: 20.7 kB / 0.5354 GB, free: 9.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.753e-05/0.5642, allocations: 42.69 kB / 0.5354 GB, free: 9.688 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.5643, allocations: 57.25 kB / 0.5355 GB, free: 9.641 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.5643, allocations: 4 kB / 0.5355 GB, free: 9.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001859/0.5645, allocations: 86.56 kB / 0.5356 GB, free: 9.578 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.5645, allocations: 5.781 kB / 0.5356 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.5645, allocations: 5.188 kB / 0.5356 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.661e-05/0.5646, allocations: 5.062 kB / 0.5356 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.072e-05/0.5646, allocations: 14.62 kB / 0.5356 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.5647, allocations: 5.109 kB / 0.5356 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.147e-05/0.5648, allocations: 8.234 kB / 0.5356 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.5648, allocations: 3.281 kB / 0.5356 GB, free: 9.555 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.0001246/0.5649, allocations: 118.4 kB / 0.5357 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.015e-05/0.5649, allocations: 12.44 kB / 0.5357 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.148e-05/0.565, allocations: 22.89 kB / 0.5357 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.565, allocations: 3.938 kB / 0.5358 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.565, allocations: 1.281 kB / 0.5358 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.565, allocations: 0 / 0.5358 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004221/0.5655, allocations: 345 kB / 0.5361 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.5655, allocations: 0 / 0.5361 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.08e-05/0.5655, allocations: 3.562 kB / 0.5361 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.5656, allocations: 5.188 kB / 0.5361 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.5656, allocations: 5.219 kB / 0.5361 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.5656, allocations: 3.938 kB / 0.5361 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.5656, allocations: 0 / 0.5361 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002767/0.5659, allocations: 190.1 kB / 0.5363 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.117e-05/0.5659, allocations: 87.73 kB / 0.5364 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.387e-05/0.566, allocations: 1.125 kB / 0.5364 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.276e-05/0.5661, allocations: 7.156 kB / 0.5364 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.291e-05/0.5662, allocations: 11.45 kB / 0.5364 GB, free: 8.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.5662, allocations: 2.031 kB / 0.5364 GB, free: 8.758 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.372e-05/0.5663, allocations: 105.5 kB / 0.5365 GB, free: 8.672 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5663, allocations: 0 / 0.5365 GB, free: 8.672 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.5665, allocations: 19.27 kB / 0.5365 GB, free: 8.664 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.0001351/0.5667, allocations: 99.97 kB / 0.5366 GB, free: 8.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001739/0.5669, allocations: 47.5 kB / 0.5366 GB, free: 8.551 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5669, allocations: 5.5 kB / 0.5366 GB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.512e-05/0.5669, allocations: 25.69 kB / 0.5367 GB, free: 8.535 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.5673, allocations: 24.3 kB / 0.5367 GB, free: 8.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005938/0.5679, allocations: 201.6 kB / 0.5369 GB, free: 8.348 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.5682, allocations: 0.6967 MB / 0.5376 GB, free: 7.641 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.257e-05/0.5683, allocations: 13.19 kB / 0.5376 GB, free: 7.633 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.5684, allocations: 12.59 kB / 0.5376 GB, free: 7.625 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.5684, allocations: 0 / 0.5376 GB, free: 7.625 MB / 398.1 MB Notification: Performance of Templates: time 0.01024/0.5786, allocations: 0.9363 MB / 0.5385 GB, free: 7.148 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches