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.0009478/0.0009478, allocations: 77.88 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001114/0.001114, allocations: 168.4 kB / 24.82 MB, free: 9.25 MB / 18.57 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 0.9384/0.9384, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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.2384/0.2384, allocations: 32.8 MB / 294.6 MB, free: 1.234 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 376.5 MB, free: 4.422 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.043e-05/2.172e-05, allocations: 6.25 kB / 376.5 MB, free: 4.414 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001954/0.001976, allocations: 1.666 MB / 378.1 MB, free: 2.734 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007225/0.002698, allocations: 0.5685 MB / 378.7 MB, free: 2.16 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.797e-05/0.002776, allocations: 0 / 378.7 MB, free: 2.16 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001131/0.00289, allocations: 19.88 kB / 378.7 MB, free: 2.141 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.937e-05/0.002929, allocations: 11.86 kB / 378.7 MB, free: 2.129 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.003165, allocations: 91.62 kB / 378.8 MB, free: 2.039 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001185/0.003283, allocations: 111.8 kB / 378.9 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.666e-05/0.00338, allocations: 23.92 kB / 378.9 MB, free: 1.906 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.395e-05/0.003474, allocations: 71.8 kB / 379 MB, free: 1.836 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.978e-05/0.003524, allocations: 23.95 kB / 379 MB, free: 1.812 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.826e-05/0.003542, allocations: 8 kB / 379.1 MB, free: 1.805 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.168e-05/0.003554, allocations: 15.94 kB / 379.1 MB, free: 1.789 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.003e-05/0.003574, allocations: 15.98 kB / 379.1 MB, free: 1.773 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.96e-05/0.003603, allocations: 31.91 kB / 379.1 MB, free: 1.742 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.003705, allocations: 67.67 kB / 379.2 MB, free: 1.676 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.003706, allocations: 0 / 379.2 MB, free: 1.676 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.003708, allocations: 4 kB / 379.2 MB, free: 1.672 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.965e-06/0.003711, allocations: 0 / 379.2 MB, free: 1.672 MB / 346.7 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.0004271/0.004138, allocations: 443.9 kB / 379.6 MB, free: 1.199 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.004174, allocations: 8.031 kB / 379.6 MB, free: 1.191 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.071e-05/0.004205, allocations: 16.89 kB / 379.6 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001415/0.004346, allocations: 152.4 kB / 379.8 MB, free: 1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.004363, allocations: 4.375 kB / 379.8 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.24e-05/0.004385, allocations: 20.31 kB / 379.8 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001532/0.004539, allocations: 78.92 kB / 379.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.004548, allocations: 192 / 379.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.004562, allocations: 8.375 kB / 379.9 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.004568, allocations: 3.938 kB / 379.9 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.966e-05/0.004608, allocations: 23.22 kB / 379.9 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003669/0.004975, allocations: 324.1 kB / 380.2 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.242e-05/0.005067, allocations: 59.03 kB / 380.3 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.861e-05/0.005086, allocations: 15.72 kB / 380.3 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.554e-06/0.005093, allocations: 3.938 kB / 380.3 MB, free: 432 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.839e-05/0.005182, allocations: 77.06 kB / 380.4 MB, free: 340 kB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.005183, allocations: 0 / 380.4 MB, free: 340 kB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001478/0.005331, allocations: 85.55 kB / 380.5 MB, free: 248 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.005362, allocations: 55.41 kB / 380.5 MB, free: 180 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.424e-05/0.005456, allocations: 189.8 kB / 380.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.00548, allocations: 29.64 kB / 380.7 MB, free: 15.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.609e-05/0.005536, allocations: 155.1 kB / 380.9 MB, free: 15.78 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.005553, allocations: 7.906 kB / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.599e-05/0.005589, allocations: 35.34 kB / 380.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.005702, allocations: 0.5 MB / 381.4 MB, free: 15.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.813e-05/0.00572, allocations: 12 kB / 381.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.732e-05/0.005747, allocations: 31.34 kB / 381.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.123e-05/0.005788, allocations: 35.31 kB / 381.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.00579, allocations: 0 / 381.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.077e-05/0.005871, allocations: 73.58 kB / 381.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.005882, allocations: 4 kB / 381.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.005887, allocations: 0 / 381.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.005897, allocations: 4 kB / 381.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.464e-05/0.005962, allocations: 16.02 kB / 381.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.095e-06/0.005965, allocations: 0 / 381.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.457e-05/0.006, allocations: 19.94 kB / 381.6 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-06/0.006004, allocations: 0 / 381.6 MB, free: 15 MB / 362.7 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 7.003e-05/0.006074, allocations: 174.4 kB / 381.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.177e-05/0.006085, allocations: 11.95 kB / 381.8 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.616e-05/0.006112, allocations: 8.781 kB / 381.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.006113, allocations: 0 / 381.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.006117, allocations: 4 kB / 381.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.00612, allocations: 4 kB / 381.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002294/0.006349, allocations: 318 kB / 382.1 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.006351, allocations: 0 / 382.1 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.417e-05/0.006395, allocations: 15.92 kB / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.006397, allocations: 0 / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.006404, allocations: 0 / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.006405, allocations: 0 / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.006406, allocations: 0 / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001438/0.00655, allocations: 236.2 kB / 382.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.186e-05/0.006562, allocations: 11.98 kB / 382.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.006574, allocations: 4 kB / 382.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.105e-05/0.006625, allocations: 11.98 kB / 382.4 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.006669, allocations: 15.97 kB / 382.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-06/0.006674, allocations: 0 / 382.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.203e-05/0.006726, allocations: 142.1 kB / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.006727, allocations: 3.938 kB / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001546/0.006881, allocations: 19.95 kB / 382.6 MB, free: 13.98 MB / 362.7 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 7.773e-05/0.006959, allocations: 99.17 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.685e-05/0.007036, allocations: 43.66 kB / 382.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.007037, allocations: 0 / 382.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.672e-05/0.007074, allocations: 35.61 kB / 382.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002014/0.007275, allocations: 15.98 kB / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004069/0.007682, allocations: 242.1 kB / 383 MB, free: 13.51 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.878e-05/0.007721, allocations: 63.34 kB / 383.1 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.713e-05/0.007748, allocations: 4.734 kB / 383.1 MB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.156e-05/0.00781, allocations: 82.19 kB / 383.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.00781, allocations: 0 / 383.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of Templates: time 0.002714/0.01052, allocations: 1.39 MB / 384.6 MB, free: 11.97 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7078085779212415]