Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009759/0.0009759, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.0009926/0.0009926, allocations: 167.5 kB / 24.99 MB, free: 8.336 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.934/0.934, allocations: 177.1 MB / 205.3 MB, free: 5.645 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.2675/0.2675, allocations: 34.25 MB / 296 MB, free: 0.793 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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.477e-06/3.477e-06, allocations: 4 kB / 378 MB, free: 3.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.858e-05/2.205e-05, allocations: 5.547 kB / 378 MB, free: 3.016 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001421/0.001443, allocations: 0.8336 MB / 378.8 MB, free: 2.18 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001923/0.001635, allocations: 43.83 kB / 378.9 MB, free: 2.137 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.299e-05/0.001708, allocations: 4 kB / 378.9 MB, free: 2.133 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.001823, allocations: 3.938 kB / 378.9 MB, free: 2.129 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.558e-05/0.001838, allocations: 7.938 kB / 378.9 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001093/0.001948, allocations: 19.97 kB / 378.9 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.00205, allocations: 35.91 kB / 379 MB, free: 2.066 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.00215, allocations: 11.94 kB / 379 MB, free: 2.055 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.417e-05/0.002195, allocations: 15.98 kB / 379 MB, free: 2.039 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.93e-05/0.002234, allocations: 11.98 kB / 379 MB, free: 2.027 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.002252, allocations: 0 / 379 MB, free: 2.027 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.038e-05/0.002262, allocations: 7.938 kB / 379 MB, free: 2.02 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.866e-05/0.002281, allocations: 7.984 kB / 379 MB, free: 2.012 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.478e-05/0.002305, allocations: 11.98 kB / 379 MB, free: 2 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.002408, allocations: 31.84 kB / 379.1 MB, free: 1.969 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.002411, allocations: 0 / 379.1 MB, free: 1.969 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.002411, allocations: 0 / 379.1 MB, free: 1.969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.002415, allocations: 0 / 379.1 MB, free: 1.969 MB / 346.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.0004285/0.002844, allocations: 392.2 kB / 379.4 MB, free: 1.543 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.002881, allocations: 8.031 kB / 379.4 MB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.145e-05/0.002922, allocations: 4.938 kB / 379.4 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.003088, allocations: 132.5 kB / 379.6 MB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.003098, allocations: 4.375 kB / 379.6 MB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.003115, allocations: 384 / 379.6 MB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.756e-05/0.003203, allocations: 50.25 kB / 379.6 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.003209, allocations: 192 / 379.6 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.003218, allocations: 4.312 kB / 379.6 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.003225, allocations: 384 / 379.6 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.235e-05/0.003258, allocations: 15.88 kB / 379.6 MB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004281/0.003686, allocations: 283.7 kB / 379.9 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.011e-05/0.003736, allocations: 34.98 kB / 380 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.816e-05/0.003754, allocations: 19.62 kB / 380 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.003762, allocations: 4.062 kB / 380 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.525e-05/0.003827, allocations: 49.06 kB / 380 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.003828, allocations: 0 / 380 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001243/0.003952, allocations: 45.69 kB / 380.1 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.003981, allocations: 55.34 kB / 380.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.628e-05/0.004057, allocations: 173.9 kB / 380.3 MB, free: 0.543 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.152e-05/0.004069, allocations: 29.7 kB / 380.3 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.012e-05/0.004119, allocations: 130.9 kB / 380.5 MB, free: 384 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.004134, allocations: 11.95 kB / 380.5 MB, free: 372 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.004162, allocations: 27.36 kB / 380.5 MB, free: 336 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.004367, allocations: 496.1 kB / 381 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.276e-05/0.00438, allocations: 4 kB / 381 MB, free: 15.83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.304e-05/0.004403, allocations: 23.36 kB / 381 MB, free: 15.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.175e-05/0.004435, allocations: 27.64 kB / 381 MB, free: 15.76 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.004438, allocations: 4 kB / 381 MB, free: 15.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.539e-05/0.004493, allocations: 57.52 kB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.004504, allocations: 4.625 kB / 381.1 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.004509, allocations: 0 / 381.1 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.004521, allocations: 4.031 kB / 381.1 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.932e-05/0.00455, allocations: 8 kB / 381.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.004554, allocations: 0 / 381.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.578e-05/0.00457, allocations: 3.938 kB / 381.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-06/0.004574, allocations: 4 kB / 381.1 MB, free: 15.67 MB / 362.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 6.135e-05/0.004635, allocations: 160.6 kB / 381.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.156e-06/0.004644, allocations: 15.88 kB / 381.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.607e-05/0.00466, allocations: 4 kB / 381.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.004661, allocations: 0 / 381.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.004664, allocations: 0 / 381.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.004667, allocations: 0 / 381.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.004851, allocations: 309.4 kB / 381.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.004851, allocations: 7.875 kB / 381.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.415e-05/0.004865, allocations: 0 / 381.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.004866, allocations: 0 / 381.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.004878, allocations: 4 kB / 381.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.004878, allocations: 0 / 381.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.004879, allocations: 0 / 381.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001028/0.004982, allocations: 195.9 kB / 381.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.6e-06/0.004987, allocations: 3.953 kB / 381.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.004999, allocations: 3.984 kB / 381.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.865e-05/0.005028, allocations: 8.031 kB / 381.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.544e-05/0.005053, allocations: 0 / 381.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.005057, allocations: 4 kB / 381.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.322e-05/0.005091, allocations: 131.2 kB / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005091, allocations: 0 / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001375/0.005228, allocations: 7.938 kB / 382 MB, free: 14.76 MB / 362.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 6.463e-05/0.005293, allocations: 91.25 kB / 382 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.301e-05/0.005366, allocations: 23.67 kB / 382.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.005367, allocations: 0 / 382.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.458e-05/0.005382, allocations: 15.69 kB / 382.1 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001873/0.005569, allocations: 22.56 kB / 382.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000235/0.005804, allocations: 146.3 kB / 382.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.359e-05/0.005838, allocations: 59.34 kB / 382.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.491e-05/0.005853, allocations: 0 / 382.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.196e-05/0.005875, allocations: 12.5 kB / 382.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.005875, allocations: 0 / 382.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of Templates: time 0.002362/0.008237, allocations: 0.5095 MB / 382.8 MB, free: 13.82 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.8985837479121983]