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.001083/0.001083, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.00108/0.00108, allocations: 165.1 kB / 24.99 MB, free: 8.285 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 1.051/1.051, allocations: 177.1 MB / 205.3 MB, free: 5.605 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.2621/0.2621, allocations: 32.8 MB / 294.6 MB, free: 1.219 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.204e-06/2.204e-06, allocations: 0 / 376 MB, free: 4.977 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.915e-05/3.135e-05, allocations: 2.312 kB / 376 MB, free: 4.973 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002267/0.002298, allocations: 0.83 MB / 376.8 MB, free: 4.145 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002266/0.002525, allocations: 51.77 kB / 376.9 MB, free: 4.094 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.208e-05/0.002597, allocations: 0 / 376.9 MB, free: 4.094 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.002731, allocations: 3.938 kB / 376.9 MB, free: 4.09 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.065e-05/0.002751, allocations: 3.938 kB / 376.9 MB, free: 4.086 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001281/0.002879, allocations: 15.98 kB / 376.9 MB, free: 4.07 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.003016, allocations: 39.91 kB / 376.9 MB, free: 4.031 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.003141, allocations: 11.94 kB / 376.9 MB, free: 4.02 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.289e-05/0.003193, allocations: 23.97 kB / 377 MB, free: 3.996 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.299e-05/0.003236, allocations: 7.984 kB / 377 MB, free: 3.988 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.594e-05/0.003262, allocations: 4 kB / 377 MB, free: 3.984 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.278e-05/0.003275, allocations: 4 kB / 377 MB, free: 3.98 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.978e-05/0.003295, allocations: 7.938 kB / 377 MB, free: 3.973 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.053e-05/0.003325, allocations: 11.98 kB / 377 MB, free: 3.961 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004156/0.003741, allocations: 27.84 kB / 377 MB, free: 3.934 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.003743, allocations: 0 / 377 MB, free: 3.934 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.003744, allocations: 0 / 377 MB, free: 3.934 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.003749, allocations: 0 / 377 MB, free: 3.934 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.0004333/0.004183, allocations: 388.2 kB / 377.4 MB, free: 3.512 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.004224, allocations: 8.031 kB / 377.4 MB, free: 3.504 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.533e-05/0.004269, allocations: 16.94 kB / 377.4 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.004434, allocations: 128.5 kB / 377.6 MB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.004445, allocations: 4.375 kB / 377.6 MB, free: 3.332 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.004465, allocations: 8.359 kB / 377.6 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.672e-05/0.004562, allocations: 46.23 kB / 377.6 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.004568, allocations: 192 / 377.6 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.00458, allocations: 4.375 kB / 377.6 MB, free: 3.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.004587, allocations: 384 / 377.6 MB, free: 3.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.644e-05/0.004623, allocations: 19.81 kB / 377.6 MB, free: 3.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004726/0.005096, allocations: 279.7 kB / 377.9 MB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.408e-05/0.00514, allocations: 27.06 kB / 377.9 MB, free: 2.902 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.957e-05/0.00516, allocations: 23.61 kB / 378 MB, free: 2.875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.839e-06/0.005164, allocations: 0 / 378 MB, free: 2.875 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.194e-05/0.005246, allocations: 57.06 kB / 378 MB, free: 2.805 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 7.82e-07/0.005247, allocations: 0 / 378 MB, free: 2.805 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001028/0.00535, allocations: 37.7 kB / 378.1 MB, free: 2.762 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.005389, allocations: 59.39 kB / 378.1 MB, free: 2.691 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.005492, allocations: 173.8 kB / 378.3 MB, free: 2.504 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.005505, allocations: 29.7 kB / 378.3 MB, free: 2.469 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.942e-05/0.005564, allocations: 134.9 kB / 378.4 MB, free: 2.332 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.688e-05/0.005581, allocations: 8.016 kB / 378.4 MB, free: 2.324 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/0.005622, allocations: 27.36 kB / 378.5 MB, free: 2.289 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.005763, allocations: 496.1 kB / 379 MB, free: 1.793 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.428e-05/0.005777, allocations: 0 / 379 MB, free: 1.793 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.956e-05/0.005807, allocations: 23.38 kB / 379 MB, free: 1.762 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.281e-05/0.00585, allocations: 27.36 kB / 379 MB, free: 1.727 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.005851, allocations: 0 / 379 MB, free: 1.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.87e-05/0.00593, allocations: 61.52 kB / 379.1 MB, free: 1.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.005944, allocations: 8.031 kB / 379.1 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.00595, allocations: 0 / 379.1 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.005971, allocations: 0 / 379.1 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.994e-05/0.006001, allocations: 4 kB / 379.1 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.006008, allocations: 0 / 379.1 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.66e-05/0.006034, allocations: 8 kB / 379.1 MB, free: 1.641 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-06/0.00604, allocations: 0 / 379.1 MB, free: 1.641 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 9.081e-05/0.00613, allocations: 160.5 kB / 379.2 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.25e-05/0.006143, allocations: 7.891 kB / 379.3 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.752e-05/0.00617, allocations: 15.98 kB / 379.3 MB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.006173, allocations: 4.328 kB / 379.3 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.006177, allocations: 4 kB / 379.3 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.00618, allocations: 0 / 379.3 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.00643, allocations: 297.4 kB / 379.6 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.006433, allocations: 3.984 kB / 379.6 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.557e-05/0.006458, allocations: 7.938 kB / 379.6 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.006462, allocations: 3.938 kB / 379.6 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.006476, allocations: 0 / 379.6 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.006479, allocations: 0 / 379.6 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.00648, allocations: 0 / 379.6 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003065/0.006786, allocations: 195.9 kB / 379.8 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.281e-05/0.006799, allocations: 15.98 kB / 379.8 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.006813, allocations: 0 / 379.8 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.308e-05/0.006866, allocations: 3.984 kB / 379.8 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/0.006905, allocations: 4 kB / 379.8 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.00691, allocations: 0 / 379.8 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.003e-05/0.00696, allocations: 131.5 kB / 379.9 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.00696, allocations: 0 / 379.9 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002713/0.007231, allocations: 12 kB / 379.9 MB, free: 0.7188 MB / 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 9.328e-05/0.007325, allocations: 91.19 kB / 380 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001042/0.007429, allocations: 27.67 kB / 380.1 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.00743, allocations: 0 / 380.1 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.154e-05/0.007452, allocations: 15.69 kB / 380.1 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.007749, allocations: 7.938 kB / 380.1 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003298/0.008079, allocations: 150 kB / 380.2 MB, free: 392 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.696e-05/0.008126, allocations: 59.34 kB / 380.3 MB, free: 312 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.116e-05/0.008147, allocations: 4 kB / 380.3 MB, free: 308 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.845e-05/0.008175, allocations: 12.5 kB / 380.3 MB, free: 292 kB / 346.7 MB Notification: Performance of SimCode: time 1.042e-06/0.008177, allocations: 0 / 380.3 MB, free: 292 kB / 346.7 MB Notification: Performance of Templates: time 0.002906/0.01108, allocations: 0.4984 MB / 380.8 MB, free: 15.79 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.9456469451542944]