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.001006/0.001006, 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.0009427/0.0009427, 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 0.9305/0.9305, allocations: 177.1 MB / 205 MB, free: 5.648 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.2222/0.2222, allocations: 34.25 MB / 295.7 MB, free: 0.7656 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.587e-06/3.587e-06, allocations: 3.984 kB / 378 MB, free: 2.676 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.514e-05/1.873e-05, allocations: 2.312 kB / 378 MB, free: 2.672 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001439/0.001457, allocations: 0.8259 MB / 378.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001928/0.00165, allocations: 43.83 kB / 378.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.647e-05/0.001707, allocations: 3.938 kB / 378.9 MB, free: 1.797 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.001813, allocations: 7.922 kB / 378.9 MB, free: 1.789 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.612e-05/0.00183, allocations: 4 kB / 378.9 MB, free: 1.785 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.441e-05/0.001924, allocations: 15.98 kB / 378.9 MB, free: 1.77 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 9.427e-05/0.002018, allocations: 35.91 kB / 379 MB, free: 1.734 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.563e-05/0.002104, allocations: 23.86 kB / 379 MB, free: 1.711 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.007e-05/0.002144, allocations: 19.98 kB / 379 MB, free: 1.691 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.465e-05/0.002179, allocations: 7.984 kB / 379 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.002196, allocations: 0 / 379 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.968e-06/0.002206, allocations: 4 kB / 379 MB, free: 1.68 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.002223, allocations: 11.92 kB / 379 MB, free: 1.668 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.983e-05/0.002243, allocations: 4 kB / 379 MB, free: 1.664 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 9.433e-05/0.002338, allocations: 35.83 kB / 379.1 MB, free: 1.629 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.002339, allocations: 0 / 379.1 MB, free: 1.629 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.00234, allocations: 0 / 379.1 MB, free: 1.629 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.002343, allocations: 4 kB / 379.1 MB, free: 1.625 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.0003844/0.002728, allocations: 384.2 kB / 379.4 MB, free: 1.207 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.002769, allocations: 12.03 kB / 379.5 MB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.577e-05/0.002814, allocations: 4.938 kB / 379.5 MB, free: 1.191 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.002988, allocations: 128.5 kB / 379.6 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.003002, allocations: 12.36 kB / 379.6 MB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.063e-05/0.003023, allocations: 384 / 379.6 MB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.99e-05/0.003123, allocations: 46.25 kB / 379.6 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.003131, allocations: 192 / 379.6 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.003141, allocations: 384 / 379.6 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.003149, allocations: 8.312 kB / 379.6 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.039e-05/0.003179, allocations: 15.92 kB / 379.7 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003729/0.003552, allocations: 287.6 kB / 379.9 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.689e-05/0.003599, allocations: 31.06 kB / 380 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.378e-05/0.003613, allocations: 11.62 kB / 380 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.751e-06/0.003619, allocations: 0 / 380 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.821e-05/0.003677, allocations: 57.12 kB / 380 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 6.51e-07/0.003677, allocations: 3.938 kB / 380 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.000114/0.003791, allocations: 41.69 kB / 380.1 MB, free: 468 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.003818, allocations: 55.41 kB / 380.1 MB, free: 400 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.799e-05/0.003896, allocations: 177.9 kB / 380.3 MB, free: 204 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.006e-05/0.003906, allocations: 29.7 kB / 380.3 MB, free: 168 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.554e-05/0.003951, allocations: 134.9 kB / 380.5 MB, free: 28 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.162e-05/0.003963, allocations: 7.953 kB / 380.5 MB, free: 20 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.004001, allocations: 23.38 kB / 380.5 MB, free: 15.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.004108, allocations: 496.1 kB / 381 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.187e-05/0.004119, allocations: 4 kB / 381 MB, free: 15.49 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.973e-05/0.004139, allocations: 23.38 kB / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.927e-05/0.004168, allocations: 23.31 kB / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.00417, allocations: 4 kB / 381 MB, free: 15.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.354e-05/0.004224, allocations: 61.52 kB / 381.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.004236, allocations: 6.656 kB / 381.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.00424, allocations: 0 / 381.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.004252, allocations: 4 kB / 381.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.622e-05/0.004278, allocations: 4 kB / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.004283, allocations: 3.984 kB / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.783e-05/0.004301, allocations: 0 / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.004308, allocations: 8 kB / 381.1 MB, free: 15.33 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.617e-05/0.004374, allocations: 156.6 kB / 381.3 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.257e-06/0.004383, allocations: 12.22 kB / 381.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.832e-05/0.004401, allocations: 12 kB / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.004403, allocations: 0 / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.004407, allocations: 3.984 kB / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.00441, allocations: 0 / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001844/0.004594, allocations: 305.3 kB / 381.6 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.004595, allocations: 0 / 381.6 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.33e-05/0.004608, allocations: 3.938 kB / 381.6 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.00461, allocations: 0 / 381.6 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.004622, allocations: 4 kB / 381.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.004623, allocations: 4 kB / 381.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.004624, allocations: 0 / 381.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001149/0.004739, allocations: 203.8 kB / 381.8 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.711e-06/0.004745, allocations: 3.953 kB / 381.8 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.927e-06/0.004754, allocations: 4 kB / 381.8 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.683e-05/0.004781, allocations: 4 kB / 381.8 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.335e-05/0.004814, allocations: 3.984 kB / 381.8 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-06/0.004818, allocations: 0 / 381.8 MB, free: 14.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.471e-05/0.004852, allocations: 127.2 kB / 382 MB, free: 14.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004852, allocations: 0 / 382 MB, free: 14.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001342/0.004987, allocations: 8 kB / 382 MB, free: 14.42 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.7e-05/0.005054, allocations: 95.28 kB / 382.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.238e-05/0.005136, allocations: 23.61 kB / 382.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-06/0.005137, allocations: 0 / 382.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.556e-05/0.005153, allocations: 19.69 kB / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001788/0.005332, allocations: 15.86 kB / 382.1 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000239/0.005571, allocations: 146 kB / 382.3 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.205e-05/0.005603, allocations: 55.36 kB / 382.3 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.579e-05/0.005618, allocations: 0 / 382.3 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.231e-05/0.005641, allocations: 16.56 kB / 382.3 MB, free: 13.98 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.005641, allocations: 0 / 382.3 MB, free: 13.98 MB / 362.7 MB Notification: Performance of Templates: time 0.002039/0.00768, allocations: 0.5227 MB / 382.9 MB, free: 13.47 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.9296262012794614]