Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.001179/0.001179, allocations: 76.41 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.001158/0.001158, allocations: 173.8 kB / 25.61 MB, free: 8.898 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.9766/0.9766, allocations: 177.1 MB / 206 MB, free: 4.5 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.1404/0.1404, allocations: 32.8 MB / 295.4 MB, free: 15.39 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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 377.2 MB, free: 25.64 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.734e-05/2.887e-05, allocations: 2.312 kB / 377.2 MB, free: 25.63 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002179/0.002208, allocations: 0.8223 MB / 378.1 MB, free: 24.81 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002571/0.002465, allocations: 55.81 kB / 378.1 MB, free: 24.76 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.885e-05/0.002543, allocations: 0 / 378.1 MB, free: 24.76 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.002673, allocations: 3.938 kB / 378.1 MB, free: 24.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 2.266e-05/0.002696, allocations: 3.938 kB / 378.1 MB, free: 24.75 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001199/0.002815, allocations: 23.91 kB / 378.2 MB, free: 24.73 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.002922, allocations: 35.92 kB / 378.2 MB, free: 24.69 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.003025, allocations: 11.98 kB / 378.2 MB, free: 24.68 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.084e-05/0.003076, allocations: 19.97 kB / 378.2 MB, free: 24.66 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.272e-05/0.003119, allocations: 7.938 kB / 378.2 MB, free: 24.65 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.889e-05/0.003137, allocations: 4 kB / 378.2 MB, free: 24.65 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.017e-05/0.003148, allocations: 8 kB / 378.2 MB, free: 24.64 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.066e-05/0.003168, allocations: 3.984 kB / 378.2 MB, free: 24.64 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.027e-05/0.003188, allocations: 11.94 kB / 378.3 MB, free: 24.62 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.003289, allocations: 35.78 kB / 378.3 MB, free: 24.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.003292, allocations: 0 / 378.3 MB, free: 24.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.003293, allocations: 0 / 378.3 MB, free: 24.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.003297, allocations: 0 / 378.3 MB, free: 24.59 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003319/0.003629, allocations: 380.2 kB / 378.7 MB, free: 24.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.003668, allocations: 19.97 kB / 378.7 MB, free: 24.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.56e-05/0.003703, allocations: 8.891 kB / 378.7 MB, free: 24.15 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.003842, allocations: 132.5 kB / 378.8 MB, free: 23.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.003853, allocations: 384 / 378.8 MB, free: 23.99 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.003872, allocations: 8.375 kB / 378.8 MB, free: 23.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.73e-05/0.003949, allocations: 38.25 kB / 378.9 MB, free: 23.94 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.003957, allocations: 4.125 kB / 378.9 MB, free: 23.94 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-06/0.003965, allocations: 4.375 kB / 378.9 MB, free: 23.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.003971, allocations: 4.375 kB / 378.9 MB, free: 23.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.527e-05/0.003996, allocations: 7.938 kB / 378.9 MB, free: 23.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003731/0.004369, allocations: 264.3 kB / 379.1 MB, free: 23.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.153e-05/0.004421, allocations: 35 kB / 379.2 MB, free: 23.59 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.31e-05/0.004434, allocations: 11.67 kB / 379.2 MB, free: 23.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.472e-06/0.00444, allocations: 0 / 379.2 MB, free: 23.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.868e-05/0.004509, allocations: 61.12 kB / 379.2 MB, free: 23.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.00451, allocations: 0 / 379.2 MB, free: 23.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001167/0.004627, allocations: 49.62 kB / 379.3 MB, free: 23.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.05e-05/0.004648, allocations: 51.41 kB / 379.3 MB, free: 23.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.734e-05/0.004705, allocations: 165.9 kB / 379.5 MB, free: 23.2 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.444e-06/0.004712, allocations: 29.69 kB / 379.5 MB, free: 23.17 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.518e-05/0.004747, allocations: 138.8 kB / 379.7 MB, free: 23.03 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.498e-05/0.004762, allocations: 7.953 kB / 379.7 MB, free: 23.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/0.004793, allocations: 23.36 kB / 379.7 MB, free: 22.99 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.139e-05/0.004845, allocations: 496.1 kB / 380.2 MB, free: 22.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.135e-05/0.004856, allocations: 4 kB / 380.2 MB, free: 22.49 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.077e-05/0.004877, allocations: 23.36 kB / 380.2 MB, free: 22.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.443e-05/0.004911, allocations: 31.3 kB / 380.2 MB, free: 22.42 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.004913, allocations: 4 kB / 380.2 MB, free: 22.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.552e-05/0.004989, allocations: 49.59 kB / 380.3 MB, free: 22.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.005005, allocations: 4 kB / 380.3 MB, free: 22.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.005011, allocations: 15.95 kB / 380.3 MB, free: 22.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.005023, allocations: 4 kB / 380.3 MB, free: 22.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.862e-05/0.005062, allocations: 3.938 kB / 380.3 MB, free: 22.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.005066, allocations: 4.312 kB / 380.3 MB, free: 22.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.835e-05/0.005094, allocations: 0 / 380.3 MB, free: 22.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-06/0.005098, allocations: 0 / 380.3 MB, free: 22.33 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.092e-05/0.005149, allocations: 156.6 kB / 380.5 MB, free: 22.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.329e-05/0.005162, allocations: 7.938 kB / 380.5 MB, free: 22.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.346e-05/0.005186, allocations: 8 kB / 380.5 MB, free: 22.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.005187, allocations: 0 / 380.5 MB, free: 22.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.00519, allocations: 7.984 kB / 380.5 MB, free: 22.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.005193, allocations: 0 / 380.5 MB, free: 22.14 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.005415, allocations: 281.9 kB / 380.8 MB, free: 21.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.005418, allocations: 0 / 380.8 MB, free: 21.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.434e-05/0.005452, allocations: 4 kB / 380.8 MB, free: 21.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.005455, allocations: 0 / 380.8 MB, free: 21.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.005464, allocations: 0 / 380.8 MB, free: 21.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.005467, allocations: 3.984 kB / 380.8 MB, free: 21.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.005468, allocations: 0 / 380.8 MB, free: 21.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001145/0.005583, allocations: 199.9 kB / 381 MB, free: 21.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.278e-06/0.005592, allocations: 4.375 kB / 381 MB, free: 21.6 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.005604, allocations: 8.031 kB / 381 MB, free: 21.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.829e-05/0.005663, allocations: 0 / 381 MB, free: 21.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.417e-05/0.005687, allocations: 3.938 kB / 381 MB, free: 21.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.005693, allocations: 4 kB / 381 MB, free: 21.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.7e-05/0.00572, allocations: 131.2 kB / 381.1 MB, free: 21.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.00572, allocations: 0 / 381.1 MB, free: 21.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002452/0.005965, allocations: 7.938 kB / 381.1 MB, free: 21.45 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 7.601e-05/0.006041, allocations: 95.23 kB / 381.2 MB, free: 21.35 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.278e-05/0.006114, allocations: 23.66 kB / 381.3 MB, free: 21.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.006116, allocations: 4.062 kB / 381.3 MB, free: 21.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.769e-05/0.006134, allocations: 15.62 kB / 381.3 MB, free: 21.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.0064, allocations: 22.27 kB / 381.3 MB, free: 21.28 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002654/0.006666, allocations: 132 kB / 381.4 MB, free: 21.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.901e-05/0.006695, allocations: 63.2 kB / 381.5 MB, free: 21.04 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.243e-05/0.006717, allocations: 8 kB / 381.5 MB, free: 21.03 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.681e-05/0.006754, allocations: 74.14 kB / 381.6 MB, free: 20.96 MB / 314.7 MB Notification: Performance of SimCode: time 6.91e-07/0.006755, allocations: 0 / 381.6 MB, free: 20.96 MB / 314.7 MB Notification: Performance of Templates: time 0.002945/0.0097, allocations: 0.5602 MB / 382.1 MB, free: 20.41 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.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.107646259944886]