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.001462/0.001462, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001812/0.001812, allocations: 161 kB / 24.56 MB, free: 12 kB / 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 1.055/1.055, allocations: 177.1 MB / 205 MB, free: 5.59 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.2801/0.2801, allocations: 32.81 MB / 294.3 MB, free: 1.266 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.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 2.064e-06/2.064e-06, allocations: 0 / 376 MB, free: 4.668 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.097e-05/3.303e-05, allocations: 10.25 kB / 376 MB, free: 4.656 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002072/0.002105, allocations: 0.8304 MB / 376.8 MB, free: 3.824 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001925/0.002298, allocations: 39.89 kB / 376.9 MB, free: 3.785 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.51e-05/0.002363, allocations: 7.938 kB / 376.9 MB, free: 3.777 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001603/0.002523, allocations: 15.86 kB / 376.9 MB, free: 3.762 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.852e-05/0.002542, allocations: 0 / 376.9 MB, free: 3.762 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001121/0.002654, allocations: 19.92 kB / 376.9 MB, free: 3.742 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 9.466e-05/0.002749, allocations: 31.92 kB / 376.9 MB, free: 3.711 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.584e-05/0.002844, allocations: 19.97 kB / 377 MB, free: 3.691 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.961e-05/0.002884, allocations: 15.92 kB / 377 MB, free: 3.676 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.858e-05/0.002923, allocations: 11.98 kB / 377 MB, free: 3.664 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.002939, allocations: 4 kB / 377 MB, free: 3.66 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.217e-06/0.002948, allocations: 0 / 377 MB, free: 3.66 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.082e-05/0.002969, allocations: 11.94 kB / 377 MB, free: 3.648 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.274e-05/0.002992, allocations: 7.984 kB / 377 MB, free: 3.641 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001033/0.003095, allocations: 35.83 kB / 377 MB, free: 3.605 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.003097, allocations: 4 kB / 377.1 MB, free: 3.602 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.003098, allocations: 0 / 377.1 MB, free: 3.602 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.003102, allocations: 0 / 377.1 MB, free: 3.602 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.0004191/0.003521, allocations: 384.2 kB / 377.4 MB, free: 3.184 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.003562, allocations: 8.031 kB / 377.4 MB, free: 3.176 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.872e-05/0.003601, allocations: 4.938 kB / 377.4 MB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.003748, allocations: 128.5 kB / 377.6 MB, free: 3.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.706e-06/0.003756, allocations: 8.375 kB / 377.6 MB, free: 3.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/0.003779, allocations: 12.38 kB / 377.6 MB, free: 3 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.624e-05/0.003866, allocations: 42.25 kB / 377.6 MB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.003872, allocations: 192 / 377.6 MB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.335e-06/0.00388, allocations: 384 / 377.6 MB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.003888, allocations: 4.375 kB / 377.6 MB, free: 2.949 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.825e-05/0.003916, allocations: 15.91 kB / 377.6 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003673/0.004284, allocations: 287.6 kB / 377.9 MB, free: 2.617 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.174e-05/0.004335, allocations: 31.06 kB / 378 MB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.561e-05/0.004351, allocations: 15.69 kB / 378 MB, free: 2.555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.304e-06/0.004358, allocations: 4 kB / 378 MB, free: 2.551 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.944e-05/0.004418, allocations: 53 kB / 378 MB, free: 2.484 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 8.51e-07/0.004419, allocations: 0 / 378 MB, free: 2.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.000111/0.00453, allocations: 45.69 kB / 378.1 MB, free: 2.434 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.004553, allocations: 55.41 kB / 378.1 MB, free: 2.367 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.103e-05/0.004624, allocations: 173.8 kB / 378.3 MB, free: 2.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.027e-05/0.004634, allocations: 29.7 kB / 378.3 MB, free: 2.145 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.667e-05/0.004681, allocations: 134.9 kB / 378.5 MB, free: 2.008 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.229e-05/0.004693, allocations: 7.953 kB / 378.5 MB, free: 2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.58e-05/0.004719, allocations: 23.38 kB / 378.5 MB, free: 1.969 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.004824, allocations: 496.1 kB / 379 MB, free: 1.473 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.098e-05/0.004835, allocations: 8 kB / 379 MB, free: 1.465 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.993e-05/0.004855, allocations: 23.31 kB / 379 MB, free: 1.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.176e-05/0.004887, allocations: 27.38 kB / 379 MB, free: 1.398 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.004888, allocations: 0 / 379 MB, free: 1.398 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.681e-05/0.004945, allocations: 57.52 kB / 379.1 MB, free: 1.336 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.004958, allocations: 8 kB / 379.1 MB, free: 1.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.004962, allocations: 0 / 379.1 MB, free: 1.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.004974, allocations: 0 / 379.1 MB, free: 1.328 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.853e-05/0.005003, allocations: 4 kB / 379.1 MB, free: 1.324 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.005009, allocations: 8.016 kB / 379.1 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.882e-05/0.005028, allocations: 4 kB / 379.1 MB, free: 1.312 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-06/0.005032, allocations: 0 / 379.1 MB, free: 1.312 MB / 346.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.047e-05/0.005092, allocations: 156.6 kB / 379.3 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-06/0.0051, allocations: 11.89 kB / 379.3 MB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.103e-05/0.005121, allocations: 8 kB / 379.3 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.005124, allocations: 4 kB / 379.3 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.005128, allocations: 0 / 379.3 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.00513, allocations: 3.938 kB / 379.3 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001264/0.006394, allocations: 297.7 kB / 379.6 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.006395, allocations: 4 kB / 379.6 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.181e-05/0.006427, allocations: 4 kB / 379.6 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.00643, allocations: 0 / 379.6 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.006443, allocations: 0 / 379.6 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.006445, allocations: 0 / 379.6 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.006448, allocations: 4.047 kB / 379.6 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001537/0.006601, allocations: 207.8 kB / 379.8 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.034e-05/0.006612, allocations: 7.953 kB / 379.8 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.006624, allocations: 0 / 379.8 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.152e-05/0.006676, allocations: 4 kB / 379.8 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/0.00671, allocations: 3.984 kB / 379.8 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.613e-06/0.006717, allocations: 11.97 kB / 379.8 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.266e-05/0.006769, allocations: 127.5 kB / 379.9 MB, free: 412 kB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.006769, allocations: 0 / 379.9 MB, free: 412 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002606/0.00703, allocations: 4 kB / 380 MB, free: 408 kB / 346.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 8.466e-05/0.007115, allocations: 95.25 kB / 380 MB, free: 300 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.58e-05/0.0072, allocations: 23.61 kB / 380.1 MB, free: 272 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.007202, allocations: 4 kB / 380.1 MB, free: 268 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.479e-05/0.007217, allocations: 11.69 kB / 380.1 MB, free: 252 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001814/0.007398, allocations: 15.92 kB / 380.1 MB, free: 236 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002443/0.007643, allocations: 146.1 kB / 380.2 MB, free: 60 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.513e-05/0.007688, allocations: 59.34 kB / 380.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.586e-05/0.007704, allocations: 0 / 380.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.249e-05/0.007726, allocations: 12.5 kB / 380.3 MB, free: 15.96 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.007727, allocations: 0 / 380.3 MB, free: 15.96 MB / 362.7 MB Notification: Performance of Templates: time 0.002215/0.009941, allocations: 0.5129 MB / 380.8 MB, free: 15.46 MB / 362.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.302800654899329]