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.001236/0.001236, allocations: 117.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2154/0.2154, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 75.88 kB / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3414, allocations: 62.45 MB / 0.531 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002618/0.3441, allocations: 1.632 MB / 0.5326 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009068/0.345, allocations: 0.5086 MB / 0.5331 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.772e-05/0.3451, allocations: 5.219 kB / 0.5331 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.3452, allocations: 12.89 kB / 0.5331 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.237e-05/0.3453, allocations: 13.16 kB / 0.5331 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.3454, allocations: 38.47 kB / 0.5331 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001277/0.3456, allocations: 70.28 kB / 0.5332 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.3457, allocations: 32.95 kB / 0.5332 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.719e-05/0.3458, allocations: 29.36 kB / 0.5333 GB, free: 12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.295e-05/0.3458, allocations: 31.38 kB / 0.5333 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.3459, allocations: 10.31 kB / 0.5333 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.671e-05/0.3459, allocations: 5.5 kB / 0.5333 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.606e-05/0.3459, allocations: 23 kB / 0.5333 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.1e-05/0.346, allocations: 32.78 kB / 0.5334 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.3461, allocations: 78.72 kB / 0.5334 GB, free: 11.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3461, allocations: 0 / 0.5334 GB, free: 11.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3461, allocations: 1.125 kB / 0.5334 GB, free: 11.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.3461, allocations: 4 kB / 0.5334 GB, free: 11.87 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.0005368/0.3467, allocations: 388.4 kB / 0.5338 GB, free: 11.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.3467, allocations: 10.22 kB / 0.5338 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.3468, allocations: 13.56 kB / 0.5338 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.347, allocations: 198.8 kB / 0.534 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.347, allocations: 3.156 kB / 0.534 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.95e-05/0.3471, allocations: 9.75 kB / 0.534 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001578/0.3472, allocations: 80.34 kB / 0.5341 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.3472, allocations: 0 / 0.5341 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.3473, allocations: 5.031 kB / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.3473, allocations: 1.312 kB / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.679e-05/0.3473, allocations: 32.17 kB / 0.5342 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005453/0.3479, allocations: 358.1 kB / 0.5345 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.348, allocations: 49.3 kB / 0.5345 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.286e-05/0.3481, allocations: 19.7 kB / 0.5346 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.3481, allocations: 0 / 0.5346 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001139/0.3482, allocations: 66.39 kB / 0.5346 GB, free: 10.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.3482, allocations: 0 / 0.5346 GB, free: 10.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002035/0.3484, allocations: 91.12 kB / 0.5347 GB, free: 10.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.3485, allocations: 60.7 kB / 0.5348 GB, free: 10.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.3486, allocations: 140.7 kB / 0.5349 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.3486, allocations: 31.08 kB / 0.5349 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.328e-05/0.3487, allocations: 99.75 kB / 0.535 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.956e-05/0.3487, allocations: 14.3 kB / 0.535 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/0.3488, allocations: 26.06 kB / 0.5351 GB, free: 10.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3489, allocations: 321.6 kB / 0.5354 GB, free: 9.945 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.806e-05/0.3489, allocations: 16.23 kB / 0.5354 GB, free: 9.938 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.503e-05/0.349, allocations: 37.58 kB / 0.5354 GB, free: 9.902 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.047e-05/0.349, allocations: 53.75 kB / 0.5355 GB, free: 9.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3491, allocations: 0 / 0.5355 GB, free: 9.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001358/0.3492, allocations: 86.53 kB / 0.5356 GB, free: 9.801 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.3492, allocations: 5.5 kB / 0.5356 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.3492, allocations: 5.438 kB / 0.5356 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.3492, allocations: 5.312 kB / 0.5356 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.576e-05/0.3493, allocations: 6.875 kB / 0.5356 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.3493, allocations: 9.25 kB / 0.5356 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.652e-05/0.3494, allocations: 16.09 kB / 0.5356 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.3494, allocations: 2.75 kB / 0.5356 GB, free: 9.773 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 8.76e-05/0.3495, allocations: 119.3 kB / 0.5357 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.3495, allocations: 8.031 kB / 0.5357 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.798e-05/0.3496, allocations: 18.02 kB / 0.5357 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3496, allocations: 5.375 kB / 0.5358 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.3496, allocations: 3.984 kB / 0.5358 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3496, allocations: 0 / 0.5358 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003281/0.3499, allocations: 349.1 kB / 0.5361 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3499, allocations: 4 kB / 0.5361 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-05/0.35, allocations: 4.125 kB / 0.5361 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.35, allocations: 1.375 kB / 0.5361 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.35, allocations: 0 / 0.5361 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.35, allocations: 1.375 kB / 0.5361 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.35, allocations: 0 / 0.5361 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000206/0.3502, allocations: 198.3 kB / 0.5363 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.96e-05/0.3503, allocations: 82.55 kB / 0.5364 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.3503, allocations: 5.453 kB / 0.5364 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.174e-05/0.3504, allocations: 7.906 kB / 0.5364 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.3505, allocations: 12.16 kB / 0.5364 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.3505, allocations: 1.594 kB / 0.5364 GB, free: 8.977 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.26e-05/0.3505, allocations: 109.1 kB / 0.5365 GB, free: 8.887 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3506, allocations: 3.938 kB / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002378/0.3508, allocations: 24.06 kB / 0.5365 GB, free: 8.871 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 9.964e-05/0.3509, allocations: 95.14 kB / 0.5366 GB, free: 8.781 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001322/0.351, allocations: 51.48 kB / 0.5367 GB, free: 8.758 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3511, allocations: 1.125 kB / 0.5367 GB, free: 8.758 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.769e-05/0.3511, allocations: 17.72 kB / 0.5367 GB, free: 8.754 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.3514, allocations: 19.77 kB / 0.5367 GB, free: 8.742 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004595/0.3519, allocations: 193.9 kB / 0.5369 GB, free: 8.578 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.3521, allocations: 0.6972 MB / 0.5376 GB, free: 7.871 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.72e-05/0.3522, allocations: 8.828 kB / 0.5376 GB, free: 7.867 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.93e-05/0.3522, allocations: 16.66 kB / 0.5376 GB, free: 7.855 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3522, allocations: 0 / 0.5376 GB, free: 7.855 MB / 398.1 MB Notification: Performance of Templates: time 0.003125/0.3553, allocations: 0.9367 MB / 0.5385 GB, free: 7.379 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