Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.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.001364/0.001364, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.001505/0.001505, allocations: 217.3 kB / 24.47 MB, free: 4.359 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.544/1.544, allocations: 230.2 MB / 257.8 MB, free: 8.488 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.2501/0.2501, allocations: 46.88 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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator") [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.002362/0.002362, allocations: 75.88 kB / 0.4967 GB, free: 7.836 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4224/0.4248, allocations: 65.99 MB / 0.5612 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003477/0.4282, allocations: 1.652 MB / 0.5628 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.4295, allocations: 0.6047 MB / 0.5634 GB, free: 2.766 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.4296, allocations: 4 kB / 0.5634 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.4297, allocations: 11.86 kB / 0.5634 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.422e-05/0.4298, allocations: 11.88 kB / 0.5634 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004454/0.4302, allocations: 91.75 kB / 0.5635 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.4305, allocations: 107.8 kB / 0.5636 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.4306, allocations: 26.64 kB / 0.5636 GB, free: 2.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.4307, allocations: 55.83 kB / 0.5637 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.941e-05/0.4308, allocations: 39.77 kB / 0.5637 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.4309, allocations: 8 kB / 0.5637 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.654e-05/0.4309, allocations: 8 kB / 0.5637 GB, free: 2.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.327e-05/0.4309, allocations: 23.92 kB / 0.5638 GB, free: 2.387 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.317e-05/0.431, allocations: 39.73 kB / 0.5638 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.4312, allocations: 83.64 kB / 0.5639 GB, free: 2.266 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.4312, allocations: 4 kB / 0.5639 GB, free: 2.262 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4312, allocations: 0 / 0.5639 GB, free: 2.262 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.4312, allocations: 0 / 0.5639 GB, free: 2.262 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007737/0.4319, allocations: 435.8 kB / 0.5643 GB, free: 1.785 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.432, allocations: 11.97 kB / 0.5643 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.091e-05/0.432, allocations: 8.891 kB / 0.5643 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.4324, allocations: 202.9 kB / 0.5645 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.4324, allocations: 12.36 kB / 0.5645 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.4324, allocations: 4.375 kB / 0.5645 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003142/0.4327, allocations: 109.9 kB / 0.5646 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.4327, allocations: 0 / 0.5646 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.4328, allocations: 4 kB / 0.5646 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.4328, allocations: 0 / 0.5646 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/0.433, allocations: 55.91 kB / 0.5647 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007524/0.4337, allocations: 392.5 kB / 0.5651 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000351/0.4341, allocations: 98.55 kB / 0.5652 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.4342, allocations: 32.89 kB / 0.5652 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.4342, allocations: 0 / 0.5652 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.4345, allocations: 99.34 kB / 0.5653 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.4345, allocations: 4 kB / 0.5653 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004815/0.4349, allocations: 145.5 kB / 0.5654 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.435, allocations: 59.33 kB / 0.5655 GB, free: 448 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.4351, allocations: 148.6 kB / 0.5656 GB, free: 292 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.4352, allocations: 29.7 kB / 0.5656 GB, free: 256 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.191e-05/0.4352, allocations: 108.1 kB / 0.5658 GB, free: 144 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.4353, allocations: 15.86 kB / 0.5658 GB, free: 128 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.081e-05/0.4353, allocations: 29.7 kB / 0.5658 GB, free: 92 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.4355, allocations: 326.8 kB / 0.5661 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.4356, allocations: 31.98 kB / 0.5661 GB, free: 15.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.4357, allocations: 49.69 kB / 0.5662 GB, free: 15.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.436, allocations: 81.61 kB / 0.5663 GB, free: 15.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.436, allocations: 0 / 0.5663 GB, free: 15.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000305/0.4364, allocations: 117.5 kB / 0.5664 GB, free: 15.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.4364, allocations: 15.97 kB / 0.5664 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.4364, allocations: 3.984 kB / 0.5664 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.4364, allocations: 0 / 0.5664 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.4365, allocations: 19.92 kB / 0.5664 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.4365, allocations: 0 / 0.5664 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.4366, allocations: 20.06 kB / 0.5664 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.4366, allocations: 0 / 0.5664 GB, free: 15.41 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.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.0001277/0.4367, allocations: 122.1 kB / 0.5665 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.4368, allocations: 23.83 kB / 0.5666 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.782e-05/0.4368, allocations: 8.719 kB / 0.5666 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.4368, allocations: 7.938 kB / 0.5666 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.4368, allocations: 0 / 0.5666 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.4368, allocations: 0 / 0.5666 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007121/0.4375, allocations: 406.4 kB / 0.567 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.4375, allocations: 0 / 0.567 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.618e-05/0.4376, allocations: 8 kB / 0.567 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.4376, allocations: 0 / 0.567 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.679e-06/0.4376, allocations: 0 / 0.567 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.4376, allocations: 3.984 kB / 0.567 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4376, allocations: 4 kB / 0.567 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005007/0.4381, allocations: 247.3 kB / 0.5672 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.32e-05/0.4382, allocations: 93.05 kB / 0.5673 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.4382, allocations: 0 / 0.5673 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.4384, allocations: 24.03 kB / 0.5673 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.694e-05/0.4384, allocations: 11.98 kB / 0.5673 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.4384, allocations: 4 kB / 0.5674 GB, free: 14.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.472e-05/0.4385, allocations: 122.6 kB / 0.5675 GB, free: 14.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4385, allocations: 0 / 0.5675 GB, free: 14.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000239/0.4388, allocations: 12 kB / 0.5675 GB, free: 14.23 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,change.u,booleanPulse.pulseStart) * Number of discrete states: 1 (change.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.0001115/0.4389, allocations: 91.25 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003239/0.4392, allocations: 91.83 kB / 0.5677 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4392, allocations: 0 / 0.5677 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.4393, allocations: 35.97 kB / 0.5677 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.4397, allocations: 30.48 kB / 0.5677 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.4407, allocations: 274.3 kB / 0.568 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003639/0.4411, allocations: 0.704 MB / 0.5687 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.962e-05/0.4411, allocations: 8.547 kB / 0.5687 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.67e-05/0.4412, allocations: 19.44 kB / 0.5687 GB, free: 12.93 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4412, allocations: 0 / 0.5687 GB, free: 12.93 MB / 414.1 MB Notification: Performance of Templates: time 0.004725/0.4459, allocations: 1.253 MB / 0.5699 GB, free: 11.68 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.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.266834193840623]