Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.0007979/0.0007979, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.003356/0.003356, allocations: 158.5 kB / 24.7 MB, free: 9.441 MB / 18.57 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 0.8352/0.8352, allocations: 177 MB / 204.9 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2316/0.2316, allocations: 34.24 MB / 295.6 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 443.4 MB, free: 1.086 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.764e-05/1.92e-05, allocations: 2.281 kB / 443.4 MB, free: 1.082 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.156/0.156, allocations: 1.617 MB / 445 MB, free: 43.7 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006596/0.1566, allocations: 0.5668 MB / 445.6 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.551e-05/0.1567, allocations: 3.938 kB / 445.6 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 9.276e-05/0.1568, allocations: 10.97 kB / 445.6 MB, free: 43.53 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 3.739e-05/0.1568, allocations: 13.59 kB / 445.6 MB, free: 43.52 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.1571, allocations: 96.89 kB / 445.7 MB, free: 43.5 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001113/0.1572, allocations: 118.3 kB / 445.8 MB, free: 43.48 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.694e-05/0.1573, allocations: 24.5 kB / 445.8 MB, free: 43.47 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.875e-05/0.1574, allocations: 65.59 kB / 445.9 MB, free: 43.44 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.701e-05/0.1574, allocations: 27.62 kB / 445.9 MB, free: 43.43 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.376e-05/0.1574, allocations: 8.406 kB / 445.9 MB, free: 43.43 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.819e-06/0.1574, allocations: 8.562 kB / 446 MB, free: 43.43 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.798e-05/0.1575, allocations: 22.12 kB / 446 MB, free: 43.42 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.791e-05/0.1575, allocations: 27.86 kB / 446 MB, free: 43.4 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001028/0.1576, allocations: 93.23 kB / 446.1 MB, free: 43.36 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1576, allocations: 1.656 kB / 446.1 MB, free: 43.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1576, allocations: 0 / 446.1 MB, free: 43.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.1576, allocations: 0 / 446.1 MB, free: 43.36 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.0003976/0.158, allocations: 355.9 kB / 446.4 MB, free: 43.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.158, allocations: 8.719 kB / 446.4 MB, free: 43.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.145e-05/0.1581, allocations: 14.73 kB / 446.5 MB, free: 43.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.1582, allocations: 142 kB / 446.6 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.1582, allocations: 7.25 kB / 446.6 MB, free: 42.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.1583, allocations: 10.38 kB / 446.6 MB, free: 42.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001533/0.1584, allocations: 102.2 kB / 446.7 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.1584, allocations: 192 / 446.7 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.1584, allocations: 384 / 446.7 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1584, allocations: 7.5 kB / 446.7 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.67e-05/0.1585, allocations: 57.7 kB / 446.8 MB, free: 42.83 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00035/0.1589, allocations: 304.2 kB / 447.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.159, allocations: 104 kB / 447.2 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.016e-05/0.1591, allocations: 37.62 kB / 447.2 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.1591, allocations: 0 / 447.2 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001247/0.1592, allocations: 100.2 kB / 447.3 MB, free: 42.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 8.21e-07/0.1592, allocations: 0 / 447.3 MB, free: 42.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002415/0.1595, allocations: 146.3 kB / 447.5 MB, free: 42.42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.158e-05/0.1595, allocations: 54.69 kB / 447.5 MB, free: 42.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.248e-05/0.1595, allocations: 143.4 kB / 447.7 MB, free: 42.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.166e-06/0.1595, allocations: 25.7 kB / 447.7 MB, free: 42.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.744e-05/0.1596, allocations: 100.8 kB / 447.8 MB, free: 42.11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.1596, allocations: 18.27 kB / 447.8 MB, free: 42.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.1596, allocations: 26.25 kB / 447.8 MB, free: 42.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.664e-05/0.1596, allocations: 324.9 kB / 448.1 MB, free: 41.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.476e-05/0.1597, allocations: 35.2 kB / 448.2 MB, free: 41.74 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.61e-05/0.1598, allocations: 51.61 kB / 448.2 MB, free: 41.72 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.343e-05/0.1599, allocations: 76.72 kB / 448.3 MB, free: 41.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1599, allocations: 6.844 kB / 448.3 MB, free: 41.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001286/0.16, allocations: 117.2 kB / 448.4 MB, free: 41.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.16, allocations: 6.812 kB / 448.4 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.16, allocations: 0 / 448.4 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.16, allocations: 0 / 448.4 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.78e-05/0.1601, allocations: 22.16 kB / 448.4 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.1601, allocations: 2.781 kB / 448.4 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.079e-05/0.1601, allocations: 27.59 kB / 448.5 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.1601, allocations: 2.969 kB / 448.5 MB, free: 41.6 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.617e-05/0.1602, allocations: 124.4 kB / 448.6 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.205e-06/0.1602, allocations: 6.609 kB / 448.6 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.458e-05/0.1602, allocations: 15.44 kB / 448.6 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1602, allocations: 0 / 448.6 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1602, allocations: 4 kB / 448.6 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1602, allocations: 2.719 kB / 448.6 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002328/0.1604, allocations: 327.2 kB / 448.9 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1604, allocations: 4.859 kB / 449 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.372e-05/0.1605, allocations: 13.69 kB / 449 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.1605, allocations: 0 / 449 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-06/0.1605, allocations: 6.531 kB / 449 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.1605, allocations: 0 / 449 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1605, allocations: 0 / 449 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001989/0.1607, allocations: 247.2 kB / 449.2 MB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.664e-06/0.1607, allocations: 6.734 kB / 449.2 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.1607, allocations: 7.484 kB / 449.2 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.863e-05/0.1608, allocations: 14.41 kB / 449.2 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.884e-05/0.1608, allocations: 19.62 kB / 449.3 MB, free: 41.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.1608, allocations: 2.656 kB / 449.3 MB, free: 41.01 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.637e-05/0.1608, allocations: 103.4 kB / 449.4 MB, free: 40.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1608, allocations: 3.938 kB / 449.4 MB, free: 40.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001488/0.161, allocations: 21.36 kB / 449.4 MB, free: 40.92 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.248e-05/0.161, allocations: 97.94 kB / 449.5 MB, free: 40.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001519/0.1612, allocations: 85.58 kB / 449.6 MB, free: 40.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1612, allocations: 0 / 449.6 MB, free: 40.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.883e-05/0.1613, allocations: 42.62 kB / 449.6 MB, free: 40.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001953/0.1615, allocations: 22.53 kB / 449.6 MB, free: 40.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004754/0.1619, allocations: 292.4 kB / 449.9 MB, free: 40.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.874e-05/0.162, allocations: 95.17 kB / 450 MB, free: 40.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.04e-05/0.162, allocations: 11.44 kB / 450 MB, free: 40.52 MB / 410.7 MB Notification: Performance of SimCode: time 4.8e-07/0.162, allocations: 6.875 kB / 450 MB, free: 40.51 MB / 410.7 MB Notification: Performance of Templates: time 0.001675/0.1637, allocations: 1.322 MB / 451.3 MB, free: 40.45 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.321936067193747]