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.00101/0.00101, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001128/0.002138, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001172/0.001172, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001458/0.00263, allocations: 479.5 kB / 11.83 MB, free: 2.344 MB / 13.93 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.041/1.041, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09209/1.134, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.2728/0.2728, allocations: 34.26 MB / 278.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02673/0.2995, allocations: 13.09 MB / 291.5 MB, free: 7.348 MB / 282.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 1.613e-06/1.613e-06, allocations: 0 / 292.8 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.419e-05/2.58e-05, allocations: 3.672 kB / 292.8 MB, free: 6.223 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002378/0.002404, allocations: 0.893 MB / 293.7 MB, free: 5.336 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001597/0.002563, allocations: 51.77 kB / 293.8 MB, free: 5.285 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.169e-05/0.002635, allocations: 0 / 293.8 MB, free: 5.285 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.098e-05/0.002716, allocations: 7.922 kB / 293.8 MB, free: 5.277 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.167e-05/0.002738, allocations: 3.938 kB / 293.8 MB, free: 5.273 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.292e-05/0.002811, allocations: 15.98 kB / 293.8 MB, free: 5.258 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.002911, allocations: 43.86 kB / 293.8 MB, free: 5.215 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.939e-05/0.003, allocations: 11.98 kB / 293.8 MB, free: 5.203 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.251e-05/0.003063, allocations: 23.97 kB / 293.9 MB, free: 5.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.465e-05/0.003107, allocations: 11.94 kB / 293.9 MB, free: 5.168 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.003128, allocations: 4 kB / 293.9 MB, free: 5.164 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.526e-06/0.003136, allocations: 0 / 293.9 MB, free: 5.164 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.687e-05/0.003163, allocations: 7.938 kB / 293.9 MB, free: 5.156 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.133e-05/0.003185, allocations: 8 kB / 293.9 MB, free: 5.148 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.486e-05/0.003279, allocations: 27.84 kB / 293.9 MB, free: 5.121 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.151e-05/0.003291, allocations: 3.984 kB / 293.9 MB, free: 5.117 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.003292, allocations: 7.938 kB / 293.9 MB, free: 5.109 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.0033, allocations: 0 / 293.9 MB, free: 5.109 MB / 282.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.0003705/0.003671, allocations: 253.8 kB / 294.2 MB, free: 4.836 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.03e-05/0.003701, allocations: 8.031 kB / 294.2 MB, free: 4.828 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.97e-05/0.003731, allocations: 8.922 kB / 294.2 MB, free: 4.82 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.003867, allocations: 125.7 kB / 294.3 MB, free: 4.672 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.765e-06/0.003875, allocations: 384 / 294.3 MB, free: 4.672 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.003898, allocations: 8.375 kB / 294.3 MB, free: 4.664 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.165e-05/0.00397, allocations: 38.25 kB / 294.4 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.962e-06/0.003976, allocations: 192 / 294.4 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.003984, allocations: 8.375 kB / 294.4 MB, free: 4.613 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.003988, allocations: 384 / 294.4 MB, free: 4.613 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.136e-05/0.004009, allocations: 15.88 kB / 294.4 MB, free: 4.598 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003029/0.004312, allocations: 168.2 kB / 294.6 MB, free: 4.418 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.49e-05/0.004357, allocations: 26.5 kB / 294.6 MB, free: 4.383 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.097e-05/0.004368, allocations: 8.922 kB / 294.6 MB, free: 4.371 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-06/0.004376, allocations: 3.984 kB / 294.6 MB, free: 4.367 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.493e-05/0.00445, allocations: 59.41 kB / 294.7 MB, free: 4.297 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.004451, allocations: 0 / 294.7 MB, free: 4.297 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 9.405e-05/0.004545, allocations: 45.62 kB / 294.7 MB, free: 4.246 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.004579, allocations: 55.34 kB / 294.8 MB, free: 4.18 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.082e-05/0.00464, allocations: 114.7 kB / 294.9 MB, free: 4.055 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.004651, allocations: 29.7 kB / 294.9 MB, free: 4.02 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.163e-05/0.004682, allocations: 84.09 kB / 295 MB, free: 3.934 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.475e-05/0.004697, allocations: 11.95 kB / 295 MB, free: 3.922 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/0.004721, allocations: 21.69 kB / 295 MB, free: 3.895 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.033e-05/0.004792, allocations: 310.8 kB / 295.3 MB, free: 3.582 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.763e-06/0.004798, allocations: 4 kB / 295.3 MB, free: 3.578 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.717e-05/0.004816, allocations: 21.69 kB / 295.3 MB, free: 3.551 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.569e-05/0.004841, allocations: 17.72 kB / 295.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.004843, allocations: 4 kB / 295.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.162e-05/0.004895, allocations: 49.56 kB / 295.4 MB, free: 3.469 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.004907, allocations: 8 kB / 295.4 MB, free: 3.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.004914, allocations: 0 / 295.4 MB, free: 3.461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.004925, allocations: 0 / 295.4 MB, free: 3.461 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.298e-05/0.004958, allocations: 4 kB / 295.4 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.004962, allocations: 3.938 kB / 295.4 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.098e-05/0.004983, allocations: 7.984 kB / 295.4 MB, free: 3.445 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.475e-06/0.004986, allocations: 0 / 295.4 MB, free: 3.445 MB / 282.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.309e-05/0.005039, allocations: 117.8 kB / 295.5 MB, free: 3.32 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.362e-06/0.005045, allocations: 3.938 kB / 295.5 MB, free: 3.316 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.148e-05/0.005067, allocations: 8 kB / 295.6 MB, free: 3.305 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.005068, allocations: 4 kB / 295.6 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-06/0.00507, allocations: 0 / 295.6 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.005074, allocations: 7.984 kB / 295.6 MB, free: 3.293 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000181/0.005255, allocations: 198.7 kB / 295.8 MB, free: 3.074 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.005258, allocations: 3.938 kB / 295.8 MB, free: 3.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.81e-05/0.005276, allocations: 0 / 295.8 MB, free: 3.07 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.092e-06/0.005282, allocations: 4 kB / 295.8 MB, free: 3.066 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.005284, allocations: 4 kB / 295.8 MB, free: 3.062 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.005292, allocations: 0 / 295.8 MB, free: 3.062 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.005293, allocations: 0 / 295.8 MB, free: 3.062 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.005294, allocations: 0 / 295.8 MB, free: 3.062 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.661e-05/0.00539, allocations: 155.8 kB / 295.9 MB, free: 2.895 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.877e-06/0.005399, allocations: 0 / 295.9 MB, free: 2.895 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.765e-05/0.005427, allocations: 0 / 295.9 MB, free: 2.895 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.137e-05/0.005448, allocations: 7.938 kB / 295.9 MB, free: 2.887 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-06/0.005451, allocations: 0 / 295.9 MB, free: 2.887 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.301e-05/0.005474, allocations: 20.77 kB / 296 MB, free: 2.863 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005474, allocations: 0 / 296 MB, free: 2.863 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000114/0.005588, allocations: 12.03 kB / 296 MB, free: 2.852 MB / 282.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.102e-05/0.005659, allocations: 73.84 kB / 296 MB, free: 2.773 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 5.908e-05/0.005718, allocations: 20.84 kB / 296.1 MB, free: 2.75 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.005722, allocations: 0 / 296.1 MB, free: 2.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.635e-05/0.005738, allocations: 8.859 kB / 296.1 MB, free: 2.738 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001583/0.005896, allocations: 45.62 kB / 296.1 MB, free: 2.688 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002296/0.006126, allocations: 140.8 kB / 296.3 MB, free: 2.523 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.175e-05/0.006158, allocations: 59.34 kB / 296.3 MB, free: 2.445 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.657e-05/0.006174, allocations: 96 / 296.3 MB, free: 2.445 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.987e-05/0.006214, allocations: 59.36 kB / 296.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of SimCode: time 6.42e-07/0.006215, allocations: 0 / 296.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of Templates: time 0.002073/0.008288, allocations: 0.5608 MB / 296.9 MB, free: 1.836 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.757536278106272]