Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 112.2 kB / 21.19 MB, free: 0.7734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002227/0.002227, allocations: 210.1 kB / 24.5 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.609/1.609, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2236/0.2236, allocations: 44.92 MB / 359.6 MB, free: 6.383 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 67.89 kB / 0.4943 GB, free: 10.24 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3091, allocations: 65.47 MB / 0.5582 GB, free: 7.711 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003011/0.3121, allocations: 1.661 MB / 0.5599 GB, free: 6.074 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.3132, allocations: 0.5971 MB / 0.5604 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.992e-05/0.3133, allocations: 8 kB / 0.5604 GB, free: 5.465 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.3134, allocations: 15.8 kB / 0.5605 GB, free: 5.449 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.52e-05/0.3135, allocations: 11.86 kB / 0.5605 GB, free: 5.438 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003445/0.3138, allocations: 87.83 kB / 0.5606 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002355/0.3141, allocations: 115.7 kB / 0.5607 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.3142, allocations: 26.64 kB / 0.5607 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.233e-05/0.3143, allocations: 51.84 kB / 0.5607 GB, free: 5.164 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.314e-05/0.3144, allocations: 39.83 kB / 0.5608 GB, free: 5.125 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.244e-05/0.3144, allocations: 12 kB / 0.5608 GB, free: 5.113 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.796e-05/0.3144, allocations: 8 kB / 0.5608 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.864e-05/0.3144, allocations: 19.92 kB / 0.5608 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.092e-05/0.3145, allocations: 47.67 kB / 0.5609 GB, free: 5.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001885/0.3147, allocations: 83.36 kB / 0.5609 GB, free: 4.961 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3147, allocations: 0 / 0.5609 GB, free: 4.961 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3147, allocations: 0 / 0.5609 GB, free: 4.961 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.3147, allocations: 0 / 0.5609 GB, free: 4.961 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.0006809/0.3154, allocations: 354.8 kB / 0.5613 GB, free: 4.582 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.3154, allocations: 8.031 kB / 0.5613 GB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.394e-05/0.3155, allocations: 16.88 kB / 0.5613 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.3157, allocations: 142.3 kB / 0.5614 GB, free: 4.395 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.3158, allocations: 8.375 kB / 0.5615 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.3158, allocations: 4.375 kB / 0.5615 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.3161, allocations: 109.9 kB / 0.5616 GB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.3161, allocations: 0 / 0.5616 GB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.3161, allocations: 4 kB / 0.5616 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.3161, allocations: 4 kB / 0.5616 GB, free: 4.262 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001648/0.3163, allocations: 51.95 kB / 0.5616 GB, free: 4.211 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007062/0.317, allocations: 359.6 kB / 0.562 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000339/0.3173, allocations: 110.4 kB / 0.5621 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.3174, allocations: 36.92 kB / 0.5621 GB, free: 3.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.101e-05/0.3174, allocations: 4 kB / 0.5621 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.3177, allocations: 95.36 kB / 0.5622 GB, free: 3.551 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.3177, allocations: 0 / 0.5622 GB, free: 3.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000454/0.3182, allocations: 133.6 kB / 0.5623 GB, free: 3.414 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.3182, allocations: 67.28 kB / 0.5624 GB, free: 3.336 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.3184, allocations: 155.4 kB / 0.5625 GB, free: 3.176 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.991e-05/0.3184, allocations: 25.7 kB / 0.5626 GB, free: 3.145 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.347e-05/0.3185, allocations: 108.1 kB / 0.5627 GB, free: 3.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.513e-05/0.3185, allocations: 15.86 kB / 0.5627 GB, free: 3.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.3185, allocations: 29.7 kB / 0.5627 GB, free: 2.984 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3187, allocations: 318.8 kB / 0.563 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.3188, allocations: 39.97 kB / 0.563 GB, free: 2.625 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.319, allocations: 49.69 kB / 0.5631 GB, free: 2.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.3192, allocations: 77.62 kB / 0.5632 GB, free: 2.488 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3192, allocations: 0 / 0.5632 GB, free: 2.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002989/0.3195, allocations: 121.5 kB / 0.5633 GB, free: 2.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.3195, allocations: 7.938 kB / 0.5633 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.3195, allocations: 0 / 0.5633 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.3195, allocations: 4.312 kB / 0.5633 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.3196, allocations: 15.98 kB / 0.5633 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.3196, allocations: 4 kB / 0.5633 GB, free: 2.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.061e-05/0.3197, allocations: 20 kB / 0.5633 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.3197, allocations: 4 kB / 0.5633 GB, free: 2.309 MB / 398.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.0001104/0.3198, allocations: 125.7 kB / 0.5635 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.095e-05/0.3199, allocations: 19.84 kB / 0.5635 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.344e-05/0.3199, allocations: 16.7 kB / 0.5635 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3199, allocations: 0 / 0.5635 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3199, allocations: 3.984 kB / 0.5635 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3199, allocations: 0 / 0.5635 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005533/0.3205, allocations: 357.5 kB / 0.5638 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3205, allocations: 4 kB / 0.5638 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.674e-05/0.3206, allocations: 15.92 kB / 0.5639 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3206, allocations: 4 kB / 0.5639 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3206, allocations: 4 kB / 0.5639 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3206, allocations: 400 / 0.5639 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3206, allocations: 0 / 0.5639 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004871/0.3211, allocations: 251.4 kB / 0.5641 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.05e-05/0.3211, allocations: 15.83 kB / 0.5641 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.3211, allocations: 4.031 kB / 0.5641 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.3212, allocations: 15.98 kB / 0.5641 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.142e-05/0.3213, allocations: 20.03 kB / 0.5642 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.3213, allocations: 0 / 0.5642 GB, free: 1.387 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.762e-05/0.3214, allocations: 117.7 kB / 0.5643 GB, free: 1.273 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3214, allocations: 0 / 0.5643 GB, free: 1.273 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002326/0.3216, allocations: 12 kB / 0.5643 GB, free: 1.262 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,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.0001002/0.3217, allocations: 99.19 kB / 0.5644 GB, free: 1.156 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002987/0.322, allocations: 83.89 kB / 0.5645 GB, free: 1.074 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.322, allocations: 0 / 0.5645 GB, free: 1.074 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.3222, allocations: 43.91 kB / 0.5645 GB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.3225, allocations: 23.98 kB / 0.5645 GB, free: 1.008 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009567/0.3234, allocations: 296.2 kB / 0.5648 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.3238, allocations: 0.704 MB / 0.5655 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.076e-05/0.3239, allocations: 15.44 kB / 0.5655 GB, free: 15.95 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3239, allocations: 0 / 0.5655 GB, free: 15.95 MB / 414.1 MB Notification: Performance of Templates: time 0.003227/0.3271, allocations: 1.347 MB / 0.5668 GB, free: 14.6 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 7.656644643982872]