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.0009014/0.0009014, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009901/0.0009901, allocations: 165 kB / 24.56 MB, free: 16 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 0.9625/0.9625, allocations: 177.2 MB / 205 MB, free: 5.289 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.2504/0.2504, allocations: 32.81 MB / 294.3 MB, free: 1.238 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 1.292e-06/1.292e-06, allocations: 0 / 376 MB, free: 4.707 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.608e-05/2.737e-05, allocations: 6.25 kB / 376 MB, free: 4.699 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001471/0.001498, allocations: 0.8227 MB / 376.8 MB, free: 3.875 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002019/0.0017, allocations: 43.83 kB / 376.9 MB, free: 3.832 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.44e-05/0.001765, allocations: 4 kB / 376.9 MB, free: 3.828 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.001886, allocations: 15.86 kB / 376.9 MB, free: 3.812 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.856e-05/0.001904, allocations: 3.938 kB / 376.9 MB, free: 3.809 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000108/0.002012, allocations: 15.98 kB / 376.9 MB, free: 3.793 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.002112, allocations: 35.92 kB / 376.9 MB, free: 3.758 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.353e-05/0.002206, allocations: 15.97 kB / 377 MB, free: 3.742 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.21e-05/0.002248, allocations: 19.92 kB / 377 MB, free: 3.723 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002927/0.002541, allocations: 7.984 kB / 377 MB, free: 3.715 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.002561, allocations: 4 kB / 377 MB, free: 3.711 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.676e-06/0.002569, allocations: 0 / 377 MB, free: 3.711 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.905e-05/0.002588, allocations: 11.94 kB / 377 MB, free: 3.699 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.57e-05/0.002614, allocations: 15.98 kB / 377 MB, free: 3.684 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001131/0.002727, allocations: 35.77 kB / 377.1 MB, free: 3.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.002729, allocations: 0 / 377.1 MB, free: 3.648 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.00273, allocations: 0 / 377.1 MB, free: 3.648 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.002736, allocations: 0 / 377.1 MB, free: 3.648 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.0003796/0.003115, allocations: 384.2 kB / 377.4 MB, free: 3.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.003153, allocations: 8.031 kB / 377.4 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.345e-05/0.003196, allocations: 12.94 kB / 377.4 MB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.003346, allocations: 124.6 kB / 377.6 MB, free: 3.062 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.003357, allocations: 4.375 kB / 377.6 MB, free: 3.059 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.889e-05/0.003376, allocations: 8.375 kB / 377.6 MB, free: 3.051 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.682e-05/0.003472, allocations: 46.19 kB / 377.6 MB, free: 3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.00348, allocations: 192 / 377.6 MB, free: 3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.003489, allocations: 384 / 377.6 MB, free: 3 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.003497, allocations: 4.375 kB / 377.6 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.911e-05/0.003526, allocations: 15.92 kB / 377.6 MB, free: 2.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003902/0.003916, allocations: 283.7 kB / 377.9 MB, free: 2.668 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.843e-05/0.003965, allocations: 31 kB / 378 MB, free: 2.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.742e-05/0.003982, allocations: 15.69 kB / 378 MB, free: 2.605 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.073e-06/0.003989, allocations: 4 kB / 378 MB, free: 2.602 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.192e-05/0.004051, allocations: 53.06 kB / 378 MB, free: 2.535 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 1.383e-06/0.004052, allocations: 4 kB / 378 MB, free: 2.531 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001238/0.004176, allocations: 45.62 kB / 378.1 MB, free: 2.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.004205, allocations: 55.41 kB / 378.1 MB, free: 2.414 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.894e-05/0.004274, allocations: 169.9 kB / 378.3 MB, free: 2.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.057e-06/0.004283, allocations: 29.64 kB / 378.3 MB, free: 2.195 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.39e-05/0.004327, allocations: 138.9 kB / 378.5 MB, free: 2.055 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.268e-05/0.00434, allocations: 3.953 kB / 378.5 MB, free: 2.051 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.711e-05/0.004367, allocations: 23.38 kB / 378.5 MB, free: 2.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.004478, allocations: 0.4884 MB / 379 MB, free: 1.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.133e-05/0.004489, allocations: 4 kB / 379 MB, free: 1.516 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.004e-05/0.004509, allocations: 23.38 kB / 379 MB, free: 1.484 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.329e-05/0.004543, allocations: 31.31 kB / 379 MB, free: 1.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.004544, allocations: 0 / 379 MB, free: 1.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.48e-05/0.004599, allocations: 49.91 kB / 379.1 MB, free: 1.391 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.004612, allocations: 8 kB / 379.1 MB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.004617, allocations: 3.984 kB / 379.1 MB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.004629, allocations: 0 / 379.1 MB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.267e-05/0.004662, allocations: 15.95 kB / 379.1 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.004667, allocations: 4 kB / 379.1 MB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.909e-05/0.004686, allocations: 4 kB / 379.1 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-06/0.00469, allocations: 0 / 379.1 MB, free: 1.355 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 5.928e-05/0.004749, allocations: 152.6 kB / 379.3 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.095e-06/0.004757, allocations: 11.89 kB / 379.3 MB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.841e-05/0.004775, allocations: 8 kB / 379.3 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.004778, allocations: 4 kB / 379.3 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.004781, allocations: 0 / 379.3 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.004784, allocations: 0 / 379.3 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001937/0.004978, allocations: 301.3 kB / 379.6 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.004979, allocations: 4 kB / 379.6 MB, free: 0.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.645e-05/0.004995, allocations: 4 kB / 379.6 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-06/0.004997, allocations: 0 / 379.6 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.00501, allocations: 4 kB / 379.6 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.005011, allocations: 0 / 379.6 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.005013, allocations: 3.984 kB / 379.6 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001122/0.005125, allocations: 199.9 kB / 379.8 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.843e-06/0.005132, allocations: 11.89 kB / 379.8 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.778e-06/0.005142, allocations: 0 / 379.8 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.764e-05/0.005169, allocations: 0 / 379.8 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.717e-05/0.005197, allocations: 8.016 kB / 379.8 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-06/0.0052, allocations: 4 kB / 379.8 MB, free: 0.582 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.543e-05/0.005236, allocations: 135.4 kB / 379.9 MB, free: 460 kB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005236, allocations: 0 / 379.9 MB, free: 460 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001405/0.005376, allocations: 4 kB / 380 MB, free: 456 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 7.55e-05/0.005452, allocations: 91.25 kB / 380 MB, free: 352 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.423e-05/0.005536, allocations: 23.67 kB / 380.1 MB, free: 324 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.005538, allocations: 0 / 380.1 MB, free: 324 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.708e-05/0.005555, allocations: 19.62 kB / 380.1 MB, free: 300 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001873/0.005742, allocations: 17.86 kB / 380.1 MB, free: 284 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002437/0.005986, allocations: 146 kB / 380.2 MB, free: 108 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.266e-05/0.006018, allocations: 55.36 kB / 380.3 MB, free: 32 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.565e-05/0.006034, allocations: 0 / 380.3 MB, free: 32 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.388e-05/0.006058, allocations: 16.5 kB / 380.3 MB, free: 12 kB / 346.7 MB Notification: Performance of SimCode: time 6.02e-07/0.006059, allocations: 0 / 380.3 MB, free: 12 kB / 346.7 MB Notification: Performance of Templates: time 0.002275/0.008334, allocations: 0.526 MB / 380.8 MB, free: 15.5 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: 2.912536066956818]