Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001323/0.001323, allocations: 112.4 kB / 21.17 MB, free: 0.6172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.001439, allocations: 204.1 kB / 24.46 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 230.2 MB / 257.8 MB, free: 8.523 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2523/0.2523, allocations: 46.89 MB / 361.1 MB, free: 4.645 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003277/0.003277, allocations: 83.84 kB / 0.4967 GB, free: 7.848 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4311/0.4344, allocations: 65.98 MB / 0.5612 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003163/0.4375, allocations: 1.651 MB / 0.5628 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009588/0.4385, allocations: 0.5192 MB / 0.5633 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.437e-05/0.4386, allocations: 4 kB / 0.5633 GB, free: 2.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.4387, allocations: 11.86 kB / 0.5633 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.622e-05/0.4387, allocations: 7.875 kB / 0.5633 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.4389, allocations: 35.89 kB / 0.5634 GB, free: 2.816 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.4391, allocations: 79.77 kB / 0.5634 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.4392, allocations: 31.03 kB / 0.5635 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.316e-05/0.4392, allocations: 31.8 kB / 0.5635 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.012e-05/0.4393, allocations: 35.83 kB / 0.5635 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.728e-05/0.4393, allocations: 4 kB / 0.5635 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.188e-05/0.4393, allocations: 8 kB / 0.5635 GB, free: 2.629 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.775e-05/0.4394, allocations: 15.94 kB / 0.5636 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.778e-05/0.4394, allocations: 35.8 kB / 0.5636 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.4395, allocations: 67.66 kB / 0.5637 GB, free: 2.512 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.4395, allocations: 0 / 0.5637 GB, free: 2.512 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.4395, allocations: 0 / 0.5637 GB, free: 2.512 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.4395, allocations: 4 kB / 0.5637 GB, free: 2.508 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.0006048/0.4402, allocations: 411.9 kB / 0.564 GB, free: 2.055 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.4402, allocations: 8.031 kB / 0.5641 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.736e-05/0.4402, allocations: 12.88 kB / 0.5641 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.4405, allocations: 196.2 kB / 0.5643 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.4405, allocations: 12.36 kB / 0.5643 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.951e-05/0.4406, allocations: 8.375 kB / 0.5643 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001488/0.4407, allocations: 73.98 kB / 0.5643 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.4407, allocations: 0 / 0.5643 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.4407, allocations: 11.94 kB / 0.5644 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.4407, allocations: 0 / 0.5644 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.932e-05/0.4408, allocations: 39.86 kB / 0.5644 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006252/0.4415, allocations: 356.5 kB / 0.5647 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001155/0.4416, allocations: 50.56 kB / 0.5648 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.354e-05/0.4416, allocations: 12.89 kB / 0.5648 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.4416, allocations: 0 / 0.5648 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001376/0.4418, allocations: 67.44 kB / 0.5649 GB, free: 1.105 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.4418, allocations: 0 / 0.5649 GB, free: 1.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002242/0.442, allocations: 97.47 kB / 0.565 GB, free: 1.004 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.442, allocations: 55.41 kB / 0.565 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.4422, allocations: 141.8 kB / 0.5651 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.4422, allocations: 25.7 kB / 0.5652 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.836e-05/0.4422, allocations: 100.1 kB / 0.5653 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.923e-05/0.4423, allocations: 15.91 kB / 0.5653 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.781e-05/0.4424, allocations: 29.7 kB / 0.5653 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.4426, allocations: 314.8 kB / 0.5656 GB, free: 296 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.576e-05/0.4426, allocations: 19.98 kB / 0.5656 GB, free: 276 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.825e-05/0.4427, allocations: 46.5 kB / 0.5657 GB, free: 220 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.03e-05/0.4427, allocations: 46.58 kB / 0.5657 GB, free: 164 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.4427, allocations: 0 / 0.5657 GB, free: 164 kB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001459/0.4429, allocations: 93.83 kB / 0.5658 GB, free: 64 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.4429, allocations: 4 kB / 0.5658 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.4429, allocations: 0 / 0.5658 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.4429, allocations: 4 kB / 0.5658 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.392e-05/0.443, allocations: 15.94 kB / 0.5658 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.443, allocations: 4.062 kB / 0.5658 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.173e-05/0.4431, allocations: 16.08 kB / 0.5658 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.4431, allocations: 3.984 kB / 0.5658 GB, free: 16 kB / 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,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 0.0001111/0.4432, allocations: 113.8 kB / 0.566 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/0.4432, allocations: 7.953 kB / 0.566 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.791e-05/0.4432, allocations: 20.64 kB / 0.566 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.4432, allocations: 0 / 0.566 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.4432, allocations: 4 kB / 0.566 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.4432, allocations: 0 / 0.566 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004012/0.4436, allocations: 354.4 kB / 0.5663 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4436, allocations: 4.125 kB / 0.5663 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.309e-05/0.4437, allocations: 4 kB / 0.5663 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.4437, allocations: 3.938 kB / 0.5663 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.4437, allocations: 0 / 0.5663 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4437, allocations: 4 kB / 0.5663 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.4437, allocations: 0 / 0.5663 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002316/0.4439, allocations: 195.4 kB / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.604e-05/0.444, allocations: 89.08 kB / 0.5666 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.444, allocations: 4 kB / 0.5666 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9e-05/0.4441, allocations: 4 kB / 0.5666 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.4442, allocations: 7.984 kB / 0.5666 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.4442, allocations: 8 kB / 0.5666 GB, free: 15.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001196/0.4443, allocations: 105.6 kB / 0.5667 GB, free: 15 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4443, allocations: 0 / 0.5667 GB, free: 15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002368/0.4445, allocations: 23.98 kB / 0.5668 GB, free: 14.98 MB / 414.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,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 0.0001006/0.4446, allocations: 99.25 kB / 0.5669 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001477/0.4448, allocations: 39.92 kB / 0.5669 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.4448, allocations: 0 / 0.5669 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.097e-05/0.4448, allocations: 16 kB / 0.5669 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.4451, allocations: 27.84 kB / 0.5669 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005073/0.4456, allocations: 214.6 kB / 0.5671 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.446, allocations: 0.6963 MB / 0.5678 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.98e-05/0.4461, allocations: 4.438 kB / 0.5678 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.014e-05/0.4461, allocations: 11.44 kB / 0.5678 GB, free: 13.82 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4461, allocations: 0 / 0.5678 GB, free: 13.82 MB / 414.1 MB Notification: Performance of Templates: time 0.003651/0.4498, allocations: 0.9502 MB / 0.5688 GB, free: 12.87 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.285934511106461]