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.001526/0.001526, allocations: 113.1 kB / 21.85 MB, free: 80 kB / 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.001693/0.001693, allocations: 213.1 kB / 25.13 MB, free: 3.605 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.382/1.382, allocations: 230.4 MB / 258.7 MB, free: 8.047 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.2156/0.2156, allocations: 46.94 MB / 362.1 MB, free: 4.215 MB / 286.1 MB " [Timeout remaining time 180] 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.002328/0.002328, allocations: 83.86 kB / 0.4978 GB, free: 7.391 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2686, allocations: 66.08 MB / 0.5623 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002935/0.2715, allocations: 1.65 MB / 0.5639 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.2726, allocations: 0.6048 MB / 0.5645 GB, free: 2 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.144e-05/0.2727, allocations: 3.938 kB / 0.5645 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.2728, allocations: 11.86 kB / 0.5645 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.293e-05/0.2728, allocations: 11.88 kB / 0.5645 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.2732, allocations: 91.75 kB / 0.5646 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001915/0.2734, allocations: 107.8 kB / 0.5647 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.2735, allocations: 30.78 kB / 0.5648 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.617e-05/0.2736, allocations: 59.77 kB / 0.5648 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.774e-05/0.2737, allocations: 35.84 kB / 0.5649 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.413e-05/0.2737, allocations: 8 kB / 0.5649 GB, free: 1.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.955e-05/0.2738, allocations: 8 kB / 0.5649 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.111e-05/0.2738, allocations: 19.92 kB / 0.5649 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.099e-05/0.2738, allocations: 43.73 kB / 0.5649 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001828/0.274, allocations: 87.34 kB / 0.565 GB, free: 1.496 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.274, allocations: 0 / 0.565 GB, free: 1.496 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.274, allocations: 0 / 0.565 GB, free: 1.496 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.274, allocations: 4 kB / 0.565 GB, free: 1.492 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.0006553/0.2747, allocations: 350.8 kB / 0.5654 GB, free: 1.117 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.2747, allocations: 12.03 kB / 0.5654 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.503e-05/0.2748, allocations: 12.83 kB / 0.5654 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.2751, allocations: 142.4 kB / 0.5655 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.2751, allocations: 8.375 kB / 0.5655 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.562e-05/0.2752, allocations: 8.375 kB / 0.5655 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.2754, allocations: 109.9 kB / 0.5656 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.2755, allocations: 0 / 0.5656 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.2755, allocations: 3.984 kB / 0.5656 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.525e-06/0.2755, allocations: 3.984 kB / 0.5656 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.2756, allocations: 55.91 kB / 0.5657 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007355/0.2764, allocations: 355.6 kB / 0.566 GB, free: 356 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003481/0.2767, allocations: 110.4 kB / 0.5661 GB, free: 236 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.2769, allocations: 32.92 kB / 0.5662 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.2769, allocations: 0 / 0.5662 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002692/0.2771, allocations: 99.34 kB / 0.5663 GB, free: 88 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.213e-06/0.2771, allocations: 0 / 0.5663 GB, free: 88 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000523/0.2777, allocations: 149.5 kB / 0.5664 GB, free: 15.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.046e-05/0.2777, allocations: 59.33 kB / 0.5665 GB, free: 15.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.2779, allocations: 141.8 kB / 0.5666 GB, free: 15.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.2779, allocations: 33.64 kB / 0.5666 GB, free: 15.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8e-05/0.278, allocations: 104.1 kB / 0.5667 GB, free: 15.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.796e-05/0.278, allocations: 15.86 kB / 0.5667 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.051e-05/0.2781, allocations: 25.7 kB / 0.5668 GB, free: 15.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.2782, allocations: 326.8 kB / 0.5671 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.2784, allocations: 31.98 kB / 0.5671 GB, free: 15.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.2785, allocations: 49.69 kB / 0.5672 GB, free: 15.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002243/0.2787, allocations: 81.61 kB / 0.5672 GB, free: 15.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.992e-05/0.2787, allocations: 0 / 0.5672 GB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003056/0.279, allocations: 117.5 kB / 0.5674 GB, free: 14.9 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.2791, allocations: 11.97 kB / 0.5674 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.2791, allocations: 0 / 0.5674 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.2791, allocations: 4.281 kB / 0.5674 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.2792, allocations: 23.92 kB / 0.5674 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.2792, allocations: 0 / 0.5674 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.292e-05/0.2793, allocations: 20 kB / 0.5674 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.2793, allocations: 8 kB / 0.5674 GB, free: 14.84 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.0001167/0.2794, allocations: 121.2 kB / 0.5675 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.158e-05/0.2795, allocations: 19.83 kB / 0.5675 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.668e-05/0.2795, allocations: 12.72 kB / 0.5676 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.2795, allocations: 0 / 0.5676 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.2795, allocations: 0 / 0.5676 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2795, allocations: 0 / 0.5676 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005645/0.2801, allocations: 365.5 kB / 0.5679 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2801, allocations: 0 / 0.5679 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.54e-05/0.2802, allocations: 19.98 kB / 0.5679 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2802, allocations: 0 / 0.5679 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.2802, allocations: 0 / 0.5679 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2802, allocations: 0 / 0.5679 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2802, allocations: 0 / 0.5679 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004593/0.2806, allocations: 255.7 kB / 0.5682 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.961e-05/0.2807, allocations: 11.94 kB / 0.5682 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.2807, allocations: 3.938 kB / 0.5682 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.2808, allocations: 28.03 kB / 0.5682 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.806e-05/0.2809, allocations: 7.984 kB / 0.5682 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.2809, allocations: 4 kB / 0.5682 GB, free: 13.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.329e-05/0.281, allocations: 114.2 kB / 0.5683 GB, free: 13.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.281, allocations: 0 / 0.5683 GB, free: 13.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000231/0.2812, allocations: 16 kB / 0.5684 GB, free: 13.8 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 9.819e-05/0.2813, allocations: 99.19 kB / 0.5684 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002939/0.2816, allocations: 95.86 kB / 0.5685 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2816, allocations: 0 / 0.5685 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.2817, allocations: 39.98 kB / 0.5686 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.282, allocations: 20.03 kB / 0.5686 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008676/0.2829, allocations: 270.5 kB / 0.5689 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.2832, allocations: 0.704 MB / 0.5695 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.119e-05/0.2832, allocations: 8.484 kB / 0.5695 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.572e-05/0.2833, allocations: 15.44 kB / 0.5696 GB, free: 12.5 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2833, allocations: 0 / 0.5696 GB, free: 12.5 MB / 414.1 MB Notification: Performance of Templates: time 0.003922/0.2872, allocations: 1.279 MB / 0.5708 GB, free: 11.23 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 gbode -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 4.526977799134329]