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.001413/0.001414, allocations: 117.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00157/0.00157, allocations: 204.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3831/0.3831, allocations: 46.09 MB / 344.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 75.88 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.367, allocations: 62.44 MB / 0.5316 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002989/0.37, allocations: 1.631 MB / 0.5332 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.371, allocations: 0.5161 MB / 0.5337 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.806e-05/0.3712, allocations: 5.312 kB / 0.5337 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.3713, allocations: 9.25 kB / 0.5338 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.194e-05/0.3714, allocations: 13.23 kB / 0.5338 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001992/0.3716, allocations: 34.77 kB / 0.5338 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.3717, allocations: 74.09 kB / 0.5339 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.3719, allocations: 32.58 kB / 0.5339 GB, free: 12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.575e-05/0.372, allocations: 34.8 kB / 0.5339 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.304e-05/0.372, allocations: 29.34 kB / 0.534 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.3721, allocations: 6.875 kB / 0.534 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.445e-05/0.3721, allocations: 10.81 kB / 0.534 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.918e-05/0.3721, allocations: 18.72 kB / 0.534 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.27e-05/0.3722, allocations: 36.05 kB / 0.534 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001471/0.3723, allocations: 75.42 kB / 0.5341 GB, free: 11.85 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3723, allocations: 0 / 0.5341 GB, free: 11.85 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3724, allocations: 0 / 0.5341 GB, free: 11.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.3724, allocations: 1.375 kB / 0.5341 GB, free: 11.85 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.0006019/0.373, allocations: 395.9 kB / 0.5345 GB, free: 11.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.373, allocations: 13.56 kB / 0.5345 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.807e-05/0.3731, allocations: 14.33 kB / 0.5345 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002698/0.3734, allocations: 185.8 kB / 0.5347 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.3734, allocations: 12.48 kB / 0.5347 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.019e-05/0.3734, allocations: 5.875 kB / 0.5347 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001556/0.3736, allocations: 82.38 kB / 0.5348 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.3736, allocations: 3.938 kB / 0.5348 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.3736, allocations: 1.375 kB / 0.5348 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.3736, allocations: 1.375 kB / 0.5348 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.862e-05/0.3737, allocations: 35.23 kB / 0.5348 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006028/0.3743, allocations: 355.2 kB / 0.5352 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.3745, allocations: 52.44 kB / 0.5352 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.321e-05/0.3745, allocations: 15.73 kB / 0.5352 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.303e-05/0.3745, allocations: 0 / 0.5352 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000129/0.3747, allocations: 70.5 kB / 0.5353 GB, free: 10.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.3747, allocations: 0 / 0.5353 GB, free: 10.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002321/0.3749, allocations: 87.89 kB / 0.5354 GB, free: 10.6 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.375, allocations: 52.78 kB / 0.5354 GB, free: 10.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.3751, allocations: 142.6 kB / 0.5356 GB, free: 10.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.3751, allocations: 27.08 kB / 0.5356 GB, free: 10.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.022e-05/0.3752, allocations: 105.1 kB / 0.5357 GB, free: 10.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.3752, allocations: 14.41 kB / 0.5357 GB, free: 10.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/0.3753, allocations: 28.98 kB / 0.5357 GB, free: 10.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.3754, allocations: 317.1 kB / 0.536 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.16e-05/0.3754, allocations: 16.83 kB / 0.536 GB, free: 9.914 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.715e-05/0.3755, allocations: 50.59 kB / 0.5361 GB, free: 9.867 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.696e-05/0.3756, allocations: 43.73 kB / 0.5361 GB, free: 9.832 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.3756, allocations: 1.312 kB / 0.5361 GB, free: 9.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001408/0.3758, allocations: 82.94 kB / 0.5362 GB, free: 9.777 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.3758, allocations: 4.969 kB / 0.5362 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3758, allocations: 1.031 kB / 0.5362 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.3758, allocations: 9.062 kB / 0.5362 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.996e-05/0.3759, allocations: 19.12 kB / 0.5363 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.3759, allocations: 5.453 kB / 0.5363 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.672e-05/0.376, allocations: 15.83 kB / 0.5363 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.787e-06/0.376, allocations: 3.125 kB / 0.5363 GB, free: 9.742 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.0001035/0.3761, allocations: 116.5 kB / 0.5364 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.758e-05/0.3761, allocations: 8.812 kB / 0.5364 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.146e-05/0.3762, allocations: 17.7 kB / 0.5364 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3762, allocations: 5.766 kB / 0.5364 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3762, allocations: 4 kB / 0.5364 GB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3762, allocations: 1.062 kB / 0.5364 GB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003636/0.3766, allocations: 348.2 kB / 0.5368 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3766, allocations: 1.312 kB / 0.5368 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.882e-05/0.3766, allocations: 3.719 kB / 0.5368 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.3766, allocations: 0 / 0.5368 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.3767, allocations: 0.9688 kB / 0.5368 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.3767, allocations: 1.094 kB / 0.5368 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3767, allocations: 0 / 0.5368 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002328/0.3769, allocations: 205.6 kB / 0.537 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.667e-05/0.377, allocations: 91.34 kB / 0.537 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.377, allocations: 1.094 kB / 0.537 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.3771, allocations: 3.531 kB / 0.537 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.639e-05/0.3772, allocations: 7.422 kB / 0.5371 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.3772, allocations: 6.375 kB / 0.5371 GB, free: 8.945 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.051e-05/0.3773, allocations: 105.2 kB / 0.5372 GB, free: 8.859 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3773, allocations: 4.062 kB / 0.5372 GB, free: 8.855 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002403/0.3775, allocations: 24.39 kB / 0.5372 GB, free: 8.844 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.817e-05/0.3776, allocations: 95.09 kB / 0.5373 GB, free: 8.754 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.3778, allocations: 44.36 kB / 0.5373 GB, free: 8.738 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3778, allocations: 192 / 0.5373 GB, free: 8.738 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.587e-05/0.3778, allocations: 21.72 kB / 0.5373 GB, free: 8.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.3782, allocations: 32.23 kB / 0.5374 GB, free: 8.707 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005186/0.3787, allocations: 221.8 kB / 0.5376 GB, free: 8.512 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.379, allocations: 0.6959 MB / 0.5383 GB, free: 7.805 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.474e-05/0.379, allocations: 16.38 kB / 0.5383 GB, free: 7.797 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3791, allocations: 1.125 kB / 0.5383 GB, free: 7.797 MB / 398.1 MB Notification: Performance of Templates: time 0.002903/0.382, allocations: 1.155 MB / 0.5394 GB, free: 7.199 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches