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.001344/0.001344, allocations: 81.97 kB / 22.21 MB, free: 2.285 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.001366/0.001366, allocations: 161.5 kB / 25.61 MB, free: 8.578 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.9283/0.9283, allocations: 177.1 MB / 206 MB, free: 4.52 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.1391/0.1391, allocations: 32.8 MB / 295.4 MB, free: 15.41 MB / 282.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.664e-06/1.664e-06, allocations: 0 / 377.3 MB, free: 25.63 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.347e-05/2.514e-05, allocations: 2.312 kB / 377.3 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001876/0.001901, allocations: 1.654 MB / 378.9 MB, free: 23.96 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006876/0.002589, allocations: 0.5685 MB / 379.5 MB, free: 23.38 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.535e-05/0.002674, allocations: 7.938 kB / 379.5 MB, free: 23.38 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.002804, allocations: 11.86 kB / 379.5 MB, free: 23.36 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 4.196e-05/0.002846, allocations: 15.86 kB / 379.5 MB, free: 23.35 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000254/0.0031, allocations: 87.75 kB / 379.6 MB, free: 23.26 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00012/0.00322, allocations: 115.6 kB / 379.7 MB, free: 23.15 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.423e-05/0.003314, allocations: 19.98 kB / 379.7 MB, free: 23.13 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.708e-05/0.003391, allocations: 63.88 kB / 379.8 MB, free: 23.07 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.135e-05/0.003443, allocations: 35.89 kB / 379.8 MB, free: 23.03 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.819e-05/0.003461, allocations: 8 kB / 379.8 MB, free: 23.02 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.085e-05/0.003472, allocations: 8 kB / 379.8 MB, free: 23.02 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.047e-05/0.003492, allocations: 19.92 kB / 379.9 MB, free: 23 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.614e-05/0.003518, allocations: 27.91 kB / 379.9 MB, free: 22.97 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001021/0.00362, allocations: 67.73 kB / 380 MB, free: 22.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.003623, allocations: 0 / 380 MB, free: 22.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.003624, allocations: 0 / 380 MB, free: 22.9 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.307e-06/0.003628, allocations: 3.938 kB / 380 MB, free: 22.9 MB / 314.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.0003547/0.003982, allocations: 439.9 kB / 380.4 MB, free: 22.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.004012, allocations: 15.98 kB / 380.4 MB, free: 22.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.165e-05/0.004044, allocations: 20.84 kB / 380.4 MB, free: 22.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.004171, allocations: 144.5 kB / 380.6 MB, free: 22.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.004189, allocations: 12.36 kB / 380.6 MB, free: 22.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.559e-05/0.004205, allocations: 4.375 kB / 380.6 MB, free: 22.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.004334, allocations: 94.09 kB / 380.7 MB, free: 22.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.004342, allocations: 8.125 kB / 380.7 MB, free: 22.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.136e-06/0.00435, allocations: 384 / 380.7 MB, free: 22.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.004355, allocations: 3.938 kB / 380.7 MB, free: 22.1 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.883e-05/0.004384, allocations: 19.98 kB / 380.7 MB, free: 22.08 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000394/0.004778, allocations: 332 kB / 381 MB, free: 21.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.004894, allocations: 55.03 kB / 381.1 MB, free: 21.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.657e-05/0.00491, allocations: 19.75 kB / 381.1 MB, free: 21.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.313e-06/0.004918, allocations: 0 / 381.1 MB, free: 21.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.43e-05/0.005012, allocations: 76.98 kB / 381.2 MB, free: 21.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.005013, allocations: 0 / 381.2 MB, free: 21.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001457/0.005159, allocations: 73.61 kB / 381.2 MB, free: 21.47 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.329e-05/0.005182, allocations: 55.41 kB / 381.3 MB, free: 21.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.093e-05/0.005233, allocations: 185.9 kB / 381.5 MB, free: 21.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.995e-06/0.005241, allocations: 29.7 kB / 381.5 MB, free: 21.17 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.343e-05/0.005275, allocations: 159.1 kB / 381.7 MB, free: 21.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.00529, allocations: 11.91 kB / 381.7 MB, free: 21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.807e-05/0.005318, allocations: 35.34 kB / 381.7 MB, free: 20.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.272e-05/0.005361, allocations: 0.4961 MB / 382.2 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.893e-05/0.00538, allocations: 12 kB / 382.2 MB, free: 20.44 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.166e-05/0.005401, allocations: 35.28 kB / 382.3 MB, free: 20.39 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.409e-05/0.005435, allocations: 31.38 kB / 382.3 MB, free: 20.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.005437, allocations: 4 kB / 382.3 MB, free: 20.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 6.966e-05/0.005507, allocations: 77.52 kB / 382.4 MB, free: 20.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.005518, allocations: 4 kB / 382.4 MB, free: 20.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.005523, allocations: 8.031 kB / 382.4 MB, free: 20.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.005532, allocations: 0 / 382.4 MB, free: 20.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.44e-05/0.005587, allocations: 11.98 kB / 382.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.005591, allocations: 4 kB / 382.4 MB, free: 20.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.563e-05/0.005627, allocations: 11.94 kB / 382.4 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-06/0.005631, allocations: 4 kB / 382.4 MB, free: 20.23 MB / 314.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 4.614e-05/0.005677, allocations: 164.5 kB / 382.6 MB, free: 20.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.184e-05/0.005689, allocations: 7.953 kB / 382.6 MB, free: 20.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.252e-05/0.005712, allocations: 20.77 kB / 382.6 MB, free: 20.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.005714, allocations: 7.938 kB / 382.6 MB, free: 20.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.005715, allocations: 0 / 382.6 MB, free: 20.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.005719, allocations: 3.984 kB / 382.6 MB, free: 20.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001723/0.005891, allocations: 322.2 kB / 382.9 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.005893, allocations: 0 / 382.9 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.833e-05/0.005931, allocations: 11.98 kB / 382.9 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.005933, allocations: 0 / 382.9 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.00594, allocations: 0 / 382.9 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.005941, allocations: 0 / 382.9 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.005942, allocations: 8 kB / 382.9 MB, free: 19.65 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001234/0.006066, allocations: 231.8 kB / 383.2 MB, free: 19.4 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.869e-06/0.006076, allocations: 11.94 kB / 383.2 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.006087, allocations: 0 / 383.2 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.946e-05/0.006136, allocations: 11.98 kB / 383.2 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.692e-05/0.006173, allocations: 15.97 kB / 383.2 MB, free: 19.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-06/0.006178, allocations: 0 / 383.2 MB, free: 19.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.452e-05/0.006202, allocations: 141.6 kB / 383.3 MB, free: 19.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006202, allocations: 0 / 383.3 MB, free: 19.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001448/0.006347, allocations: 19.95 kB / 383.4 MB, free: 19.21 MB / 314.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 6.909e-05/0.006416, allocations: 107.2 kB / 383.5 MB, free: 19.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.743e-05/0.006504, allocations: 47.81 kB / 383.5 MB, free: 19.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.006505, allocations: 0 / 383.5 MB, free: 19.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.325e-05/0.006539, allocations: 27.61 kB / 383.5 MB, free: 19.01 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.006738, allocations: 19.98 kB / 383.6 MB, free: 18.99 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003939/0.007132, allocations: 236 kB / 383.8 MB, free: 18.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.48e-05/0.007157, allocations: 64.34 kB / 383.9 MB, free: 18.65 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.886e-05/0.007186, allocations: 12.72 kB / 383.9 MB, free: 18.64 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.857e-05/0.007234, allocations: 78.2 kB / 383.9 MB, free: 18.56 MB / 314.7 MB Notification: Performance of SimCode: time 9.31e-07/0.007235, allocations: 0 / 383.9 MB, free: 18.56 MB / 314.7 MB Notification: Performance of Templates: time 0.00272/0.009955, allocations: 1.417 MB / 385.4 MB, free: 17.17 MB / 314.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: 3.1171066728420556]