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.001511/0.001511, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001977/0.001977, allocations: 211.5 kB / 23.73 MB, free: 4.523 MB / 14.72 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.552/1.552, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] 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.2462/0.2462, allocations: 46.95 MB / 360.9 MB, free: 4.055 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002036/0.002036, allocations: 71.89 kB / 0.4966 GB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4023/0.4043, allocations: 66.04 MB / 0.5611 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002512/0.4068, allocations: 0.8045 MB / 0.5619 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002638/0.4071, allocations: 47.89 kB / 0.5619 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.482e-05/0.4072, allocations: 3.938 kB / 0.5619 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.4073, allocations: 11.92 kB / 0.5619 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.388e-05/0.4074, allocations: 3.938 kB / 0.5619 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001338/0.4075, allocations: 15.98 kB / 0.5619 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000148/0.4076, allocations: 39.92 kB / 0.562 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.4078, allocations: 14.66 kB / 0.562 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.493e-05/0.4078, allocations: 11.94 kB / 0.562 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.475e-05/0.4079, allocations: 15.92 kB / 0.562 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.235e-05/0.4079, allocations: 4 kB / 0.562 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.073e-05/0.4079, allocations: 7.938 kB / 0.562 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.663e-05/0.4079, allocations: 8 kB / 0.562 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.066e-05/0.408, allocations: 19.91 kB / 0.5621 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.4081, allocations: 27.84 kB / 0.5621 GB, free: 3.141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4081, allocations: 0 / 0.5621 GB, free: 3.141 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.145e-06/0.4081, allocations: 0 / 0.5621 GB, free: 3.141 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.4081, allocations: 0 / 0.5621 GB, free: 3.141 MB / 398.1 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.0005256/0.4086, allocations: 286.8 kB / 0.5624 GB, free: 2.828 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.4087, allocations: 12.03 kB / 0.5624 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.524e-05/0.4087, allocations: 4.891 kB / 0.5624 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.409, allocations: 126.5 kB / 0.5625 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.409, allocations: 8.375 kB / 0.5625 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.461e-05/0.409, allocations: 384 / 0.5625 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/0.4092, allocations: 54.23 kB / 0.5625 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.4092, allocations: 192 / 0.5625 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.4092, allocations: 7.922 kB / 0.5626 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.4092, allocations: 4 kB / 0.5626 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.875e-05/0.4092, allocations: 12 kB / 0.5626 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006188/0.4099, allocations: 224.4 kB / 0.5628 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001032/0.41, allocations: 30.58 kB / 0.5628 GB, free: 2.285 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.445e-05/0.41, allocations: 4.859 kB / 0.5628 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.41, allocations: 0 / 0.5628 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001159/0.4101, allocations: 55.41 kB / 0.5629 GB, free: 2.211 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.4101, allocations: 0 / 0.5629 GB, free: 2.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002075/0.4103, allocations: 49.64 kB / 0.5629 GB, free: 2.156 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.4104, allocations: 59.34 kB / 0.563 GB, free: 2.086 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.4105, allocations: 109.8 kB / 0.5631 GB, free: 1.969 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.4105, allocations: 29.64 kB / 0.5631 GB, free: 1.934 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.762e-05/0.4106, allocations: 104.1 kB / 0.5632 GB, free: 1.828 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.4107, allocations: 7.953 kB / 0.5632 GB, free: 1.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.211e-05/0.4107, allocations: 17.72 kB / 0.5632 GB, free: 1.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.4109, allocations: 326.7 kB / 0.5635 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.114e-05/0.4109, allocations: 4 kB / 0.5635 GB, free: 1.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.403e-05/0.411, allocations: 17.72 kB / 0.5636 GB, free: 1.441 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.217e-05/0.411, allocations: 29.7 kB / 0.5636 GB, free: 1.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.411, allocations: 0 / 0.5636 GB, free: 1.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.202e-05/0.4111, allocations: 49.64 kB / 0.5636 GB, free: 1.352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.4111, allocations: 4 kB / 0.5636 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.4111, allocations: 336 / 0.5636 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.4111, allocations: 4.031 kB / 0.5636 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.302e-05/0.4112, allocations: 7.984 kB / 0.5637 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.4112, allocations: 0 / 0.5637 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.117e-05/0.4112, allocations: 4 kB / 0.5637 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-06/0.4112, allocations: 0 / 0.5637 GB, free: 1.332 MB / 398.1 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 0.0001359/0.4114, allocations: 121.8 kB / 0.5638 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.39e-05/0.4114, allocations: 7.938 kB / 0.5638 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.534e-05/0.4114, allocations: 12 kB / 0.5638 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.4114, allocations: 0 / 0.5638 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.4115, allocations: 7.922 kB / 0.5638 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.4115, allocations: 4 kB / 0.5638 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003363/0.4118, allocations: 238.2 kB / 0.564 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.4118, allocations: 0 / 0.564 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.096e-05/0.4118, allocations: 0 / 0.564 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.4118, allocations: 0 / 0.564 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.4118, allocations: 11.98 kB / 0.564 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.4118, allocations: 0 / 0.564 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4118, allocations: 0 / 0.564 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002109/0.4121, allocations: 155.4 kB / 0.5642 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.833e-06/0.4121, allocations: 0 / 0.5642 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.4121, allocations: 4.031 kB / 0.5642 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.93e-05/0.4121, allocations: 4.062 kB / 0.5642 GB, free: 0.707 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.4122, allocations: 3.984 kB / 0.5642 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.4122, allocations: 7.938 kB / 0.5642 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.004e-05/0.4123, allocations: 87.22 kB / 0.5643 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4123, allocations: 0 / 0.5643 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.4125, allocations: 7.938 kB / 0.5643 GB, free: 0.6016 MB / 398.1 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 0.0001158/0.4126, allocations: 95.23 kB / 0.5644 GB, free: 0.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001019/0.4127, allocations: 23.88 kB / 0.5644 GB, free: 488 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.4127, allocations: 0 / 0.5644 GB, free: 488 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.886e-05/0.4128, allocations: 12.06 kB / 0.5644 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.413, allocations: 10.8 kB / 0.5644 GB, free: 468 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004657/0.4135, allocations: 141.5 kB / 0.5646 GB, free: 300 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.213e-05/0.4136, allocations: 67.34 kB / 0.5646 GB, free: 212 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.145e-05/0.4136, allocations: 0 / 0.5646 GB, free: 212 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.061e-05/0.4136, allocations: 11.44 kB / 0.5646 GB, free: 200 kB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4136, allocations: 0 / 0.5646 GB, free: 200 kB / 398.1 MB Notification: Performance of Templates: time 0.003663/0.4173, allocations: 0.5027 MB / 0.5651 GB, free: 15.7 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.275243307929486]