Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001163/0.001163, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.006279/0.006279, allocations: 160.9 kB / 24.7 MB, free: 9.426 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.8444/0.8444, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2344/0.2344, allocations: 34.26 MB / 295.7 MB, free: 0.707 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 443.4 MB, free: 1.203 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.053e-05/2.201e-05, allocations: 5.234 kB / 443.4 MB, free: 1.199 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.1527/0.1527, allocations: 1.625 MB / 445.1 MB, free: 43.68 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006833/0.1534, allocations: 0.56 MB / 445.6 MB, free: 43.53 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.739e-05/0.1535, allocations: 0 / 445.6 MB, free: 43.53 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.1536, allocations: 11.11 kB / 445.6 MB, free: 43.52 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 3.85e-05/0.1536, allocations: 19.52 kB / 445.6 MB, free: 43.52 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002488/0.1539, allocations: 97.25 kB / 445.7 MB, free: 43.49 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.154, allocations: 118 kB / 445.9 MB, free: 43.47 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.1541, allocations: 20.11 kB / 445.9 MB, free: 43.47 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.482e-05/0.1542, allocations: 64.59 kB / 445.9 MB, free: 43.46 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.988e-05/0.1542, allocations: 26.64 kB / 446 MB, free: 43.46 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.1543, allocations: 9.094 kB / 446 MB, free: 43.46 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.001e-05/0.1543, allocations: 8.5 kB / 446 MB, free: 43.46 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.879e-05/0.1543, allocations: 23 kB / 446 MB, free: 43.45 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.879e-05/0.1543, allocations: 24.5 kB / 446 MB, free: 43.45 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.1544, allocations: 95.47 kB / 446.1 MB, free: 43.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.1544, allocations: 0 / 446.1 MB, free: 43.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1545, allocations: 0.7188 kB / 446.1 MB, free: 43.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.1545, allocations: 0 / 446.1 MB, free: 43.43 MB / 410.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.000421/0.1549, allocations: 350.2 kB / 446.5 MB, free: 43.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.1549, allocations: 8.719 kB / 446.5 MB, free: 43.14 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.245e-05/0.1549, allocations: 10.77 kB / 446.5 MB, free: 43.13 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001834/0.1551, allocations: 154.9 kB / 446.6 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.1551, allocations: 3.312 kB / 446.6 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.1552, allocations: 9.062 kB / 446.6 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001571/0.1553, allocations: 109.1 kB / 446.7 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1553, allocations: 192 / 446.7 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.1553, allocations: 384 / 446.7 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1553, allocations: 10.75 kB / 446.8 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.185e-05/0.1554, allocations: 57.48 kB / 446.8 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003558/0.1558, allocations: 298.7 kB / 447.1 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.1559, allocations: 101.6 kB / 447.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.148e-05/0.156, allocations: 30.81 kB / 447.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.156, allocations: 2.781 kB / 447.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001318/0.1561, allocations: 104.4 kB / 447.3 MB, free: 42.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 9.42e-07/0.1561, allocations: 0 / 447.3 MB, free: 42.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002587/0.1564, allocations: 143.3 kB / 447.5 MB, free: 42.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.393e-05/0.1564, allocations: 54.06 kB / 447.5 MB, free: 42.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.491e-05/0.1565, allocations: 141.2 kB / 447.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.564e-06/0.1565, allocations: 28.45 kB / 447.7 MB, free: 42.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.833e-05/0.1565, allocations: 105 kB / 447.8 MB, free: 42.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.483e-05/0.1565, allocations: 10.59 kB / 447.8 MB, free: 42.22 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.1566, allocations: 29.41 kB / 447.8 MB, free: 42.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.654e-05/0.1566, allocations: 324.8 kB / 448.2 MB, free: 41.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.722e-05/0.1566, allocations: 39.45 kB / 448.2 MB, free: 41.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.762e-05/0.1567, allocations: 50 kB / 448.2 MB, free: 41.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.884e-05/0.1568, allocations: 73.2 kB / 448.3 MB, free: 41.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1568, allocations: 0 / 448.3 MB, free: 41.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001332/0.1569, allocations: 123.8 kB / 448.4 MB, free: 41.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.1569, allocations: 6.688 kB / 448.4 MB, free: 41.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.157, allocations: 0 / 448.4 MB, free: 41.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.157, allocations: 0 / 448.4 MB, free: 41.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.813e-05/0.157, allocations: 20.81 kB / 448.5 MB, free: 41.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.157, allocations: 0 / 448.5 MB, free: 41.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.081e-05/0.1571, allocations: 28.91 kB / 448.5 MB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.529e-06/0.1571, allocations: 1.5 kB / 448.5 MB, free: 41.73 MB / 410.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.433e-05/0.1571, allocations: 119.4 kB / 448.6 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.165e-06/0.1571, allocations: 9.516 kB / 448.6 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.478e-05/0.1572, allocations: 15.25 kB / 448.6 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1572, allocations: 4.359 kB / 448.6 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1572, allocations: 0 / 448.6 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1572, allocations: 3.938 kB / 448.6 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002422/0.1574, allocations: 330.6 kB / 449 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1574, allocations: 3.125 kB / 449 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.459e-05/0.1574, allocations: 11.89 kB / 449 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.1575, allocations: 1.438 kB / 449 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.1575, allocations: 0 / 449 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1575, allocations: 0 / 449 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1575, allocations: 4 kB / 449 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002067/0.1577, allocations: 252.2 kB / 449.2 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.356e-06/0.1577, allocations: 6.828 kB / 449.2 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.1577, allocations: 3.125 kB / 449.2 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.067e-05/0.1577, allocations: 26.36 kB / 449.3 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.808e-05/0.1578, allocations: 15.98 kB / 449.3 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.1578, allocations: 6.781 kB / 449.3 MB, free: 41.13 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.73e-05/0.1578, allocations: 107.3 kB / 449.4 MB, free: 41.05 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1578, allocations: 0 / 449.4 MB, free: 41.05 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001532/0.158, allocations: 26.48 kB / 449.4 MB, free: 41.04 MB / 410.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.318e-05/0.158, allocations: 90.81 kB / 449.5 MB, free: 40.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001511/0.1582, allocations: 83.8 kB / 449.6 MB, free: 40.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1582, allocations: 0 / 449.6 MB, free: 40.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.897e-05/0.1583, allocations: 46.92 kB / 449.6 MB, free: 40.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.1585, allocations: 17.47 kB / 449.7 MB, free: 40.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004958/0.159, allocations: 297.1 kB / 449.9 MB, free: 40.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.87e-05/0.159, allocations: 90.28 kB / 450 MB, free: 40.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.914e-05/0.159, allocations: 14.25 kB / 450 MB, free: 40.64 MB / 410.7 MB Notification: Performance of SimCode: time 5.21e-07/0.159, allocations: 0 / 450 MB, free: 40.64 MB / 410.7 MB Notification: Performance of Templates: time 0.001769/0.1608, allocations: 1.325 MB / 451.4 MB, free: 40.58 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 4.527688178233802]