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.001304/0.001304, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.001502/0.001502, allocations: 169.9 kB / 24.91 MB, free: 9.195 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.9974/0.9974, allocations: 177.1 MB / 205.3 MB, free: 5.48 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.2459/0.2459, allocations: 32.81 MB / 294.6 MB, free: 1.242 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.442e-06/1.442e-06, allocations: 0 / 323.2 MB, free: 9.715 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.214e-05/2.358e-05, allocations: 3.188 kB / 323.2 MB, free: 9.711 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002266/0.002289, allocations: 1.665 MB / 324.9 MB, free: 8.035 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008423/0.003131, allocations: 0.5809 MB / 325.5 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.737e-05/0.003209, allocations: 0 / 325.5 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.003322, allocations: 11.88 kB / 325.5 MB, free: 7.438 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.643e-05/0.003368, allocations: 15.88 kB / 325.5 MB, free: 7.422 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.003665, allocations: 91.62 kB / 325.6 MB, free: 7.332 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001331/0.003798, allocations: 116.4 kB / 325.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.003903, allocations: 27.91 kB / 325.7 MB, free: 7.191 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.602e-05/0.003999, allocations: 59.88 kB / 325.8 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.262e-05/0.004061, allocations: 35.89 kB / 325.8 MB, free: 7.098 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.29e-05/0.004084, allocations: 8 kB / 325.8 MB, free: 7.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.181e-05/0.004096, allocations: 8 kB / 325.8 MB, free: 7.082 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.645e-05/0.004122, allocations: 19.91 kB / 325.8 MB, free: 7.062 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.776e-05/0.00415, allocations: 27.92 kB / 325.9 MB, free: 7.035 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.004261, allocations: 75.66 kB / 325.9 MB, free: 6.961 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.225e-06/0.004264, allocations: 4 kB / 325.9 MB, free: 6.957 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.004265, allocations: 0 / 325.9 MB, free: 6.957 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.004268, allocations: 0 / 325.9 MB, free: 6.957 MB / 298.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.0003639/0.004632, allocations: 297.8 kB / 326.2 MB, free: 6.645 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/0.004662, allocations: 12.02 kB / 326.2 MB, free: 6.633 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.191e-05/0.004694, allocations: 12.92 kB / 326.3 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.004832, allocations: 145.6 kB / 326.4 MB, free: 6.453 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.004848, allocations: 4.375 kB / 326.4 MB, free: 6.449 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.159e-05/0.00487, allocations: 12.38 kB / 326.4 MB, free: 6.438 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001327/0.005003, allocations: 82.91 kB / 326.5 MB, free: 6.348 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.63e-06/0.005008, allocations: 192 / 326.5 MB, free: 6.348 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.005017, allocations: 4.375 kB / 326.5 MB, free: 6.344 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.005023, allocations: 7.938 kB / 326.5 MB, free: 6.336 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.23e-05/0.005056, allocations: 19.92 kB / 326.5 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002994/0.005355, allocations: 228.6 kB / 326.8 MB, free: 6.078 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.511e-05/0.00544, allocations: 42.55 kB / 326.8 MB, free: 6.027 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.727e-05/0.005457, allocations: 16.86 kB / 326.8 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-06/0.005466, allocations: 0 / 326.8 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.728e-05/0.005563, allocations: 79.28 kB / 326.9 MB, free: 5.918 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.005564, allocations: 4 kB / 326.9 MB, free: 5.914 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001101/0.005674, allocations: 57.67 kB / 326.9 MB, free: 5.852 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.005709, allocations: 59.41 kB / 327 MB, free: 5.781 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.621e-05/0.005775, allocations: 133 kB / 327.1 MB, free: 5.641 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.005788, allocations: 25.7 kB / 327.2 MB, free: 5.609 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.896e-05/0.005827, allocations: 112.2 kB / 327.3 MB, free: 5.496 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.005848, allocations: 23.84 kB / 327.3 MB, free: 5.473 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.005879, allocations: 29.69 kB / 327.3 MB, free: 5.438 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.305e-05/0.005952, allocations: 322.8 kB / 327.6 MB, free: 5.113 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.643e-05/0.005969, allocations: 7.984 kB / 327.6 MB, free: 5.105 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.333e-05/0.005992, allocations: 25.72 kB / 327.7 MB, free: 5.074 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.873e-05/0.006031, allocations: 37.62 kB / 327.7 MB, free: 5.031 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.006033, allocations: 0 / 327.7 MB, free: 5.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 7.414e-05/0.006107, allocations: 65.61 kB / 327.8 MB, free: 4.961 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.006121, allocations: 4 kB / 327.8 MB, free: 4.957 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.006125, allocations: 0 / 327.8 MB, free: 4.957 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.856e-06/0.006134, allocations: 0 / 327.8 MB, free: 4.957 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.915e-05/0.006193, allocations: 15.98 kB / 327.8 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.417e-06/0.006196, allocations: 4.031 kB / 327.8 MB, free: 4.938 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.385e-05/0.00623, allocations: 19.92 kB / 327.8 MB, free: 4.918 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.006234, allocations: 0 / 327.8 MB, free: 4.918 MB / 298.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,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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 6.078e-05/0.006295, allocations: 117.8 kB / 327.9 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.007e-06/0.006304, allocations: 4 kB / 327.9 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.476e-05/0.006329, allocations: 20.7 kB / 328 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.00633, allocations: 0 / 328 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.006332, allocations: 0 / 328 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.006335, allocations: 0 / 328 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002024/0.006537, allocations: 230.7 kB / 328.2 MB, free: 4.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.006539, allocations: 0 / 328.2 MB, free: 4.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.888e-05/0.006578, allocations: 4 kB / 328.2 MB, free: 4.516 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.00658, allocations: 4 kB / 328.2 MB, free: 4.512 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.994e-06/0.006587, allocations: 0 / 328.2 MB, free: 4.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.006589, allocations: 7.922 kB / 328.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.006591, allocations: 0 / 328.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000118/0.006709, allocations: 163.5 kB / 328.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.388e-05/0.006723, allocations: 7.953 kB / 328.4 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.128e-05/0.006734, allocations: 0 / 328.4 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.848e-05/0.006782, allocations: 20 kB / 328.4 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.758e-05/0.00682, allocations: 19.91 kB / 328.4 MB, free: 4.281 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.006826, allocations: 4 kB / 328.4 MB, free: 4.277 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.894e-05/0.006845, allocations: 24.22 kB / 328.4 MB, free: 4.254 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006845, allocations: 4 kB / 328.4 MB, free: 4.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001199/0.006965, allocations: 15.94 kB / 328.4 MB, free: 4.234 MB / 298.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,booleanPulse.pulseStart,change.u) * 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.546e-05/0.00704, allocations: 81.02 kB / 328.5 MB, free: 4.148 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.095e-05/0.007111, allocations: 40.77 kB / 328.6 MB, free: 4.105 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.007113, allocations: 4.062 kB / 328.6 MB, free: 4.102 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.615e-05/0.007149, allocations: 28.78 kB / 328.6 MB, free: 4.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001476/0.007297, allocations: 17.55 kB / 328.6 MB, free: 4.055 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004131/0.00771, allocations: 229.1 kB / 328.8 MB, free: 3.805 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.506e-05/0.007745, allocations: 71.34 kB / 328.9 MB, free: 3.715 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.806e-05/0.007773, allocations: 8.734 kB / 328.9 MB, free: 3.707 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.509e-05/0.007828, allocations: 63.36 kB / 329 MB, free: 3.645 MB / 298.7 MB Notification: Performance of SimCode: time 1.302e-06/0.00783, allocations: 0 / 329 MB, free: 3.645 MB / 298.7 MB Notification: Performance of Templates: time 0.002677/0.01051, allocations: 1.324 MB / 330.3 MB, free: 2.348 MB / 298.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.943669287953526]