Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.001488/0.001488, 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.001883/0.001883, allocations: 161 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.9642/0.9642, allocations: 177.1 MB / 205 MB, free: 5.637 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.2642/0.2642, allocations: 32.8 MB / 294.3 MB, free: 1.285 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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 3.938 kB / 376 MB, free: 4.707 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.729e-05/2.885e-05, allocations: 2.312 kB / 376 MB, free: 4.703 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001342/0.001371, allocations: 493 kB / 376.5 MB, free: 4.219 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004795/0.001851, allocations: 263.3 kB / 376.7 MB, free: 3.961 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.149e-05/0.001872, allocations: 0 / 376.7 MB, free: 3.961 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.029e-05/0.001892, allocations: 0 / 376.7 MB, free: 3.961 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.341e-06/0.001899, allocations: 3.938 kB / 376.7 MB, free: 3.957 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.00221, allocations: 59.62 kB / 376.8 MB, free: 3.898 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.098e-05/0.002261, allocations: 4 kB / 376.8 MB, free: 3.895 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.685e-05/0.002298, allocations: 7.984 kB / 376.8 MB, free: 3.887 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.667e-05/0.002324, allocations: 0 / 376.8 MB, free: 3.887 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.507e-05/0.00235, allocations: 0 / 376.8 MB, free: 3.887 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.758e-06/0.002359, allocations: 0 / 376.8 MB, free: 3.887 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.002494, allocations: 59.89 kB / 376.9 MB, free: 3.828 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.247e-06/0.002503, allocations: 4 kB / 376.9 MB, free: 3.824 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.156e-05/0.002525, allocations: 4 kB / 376.9 MB, free: 3.82 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.002654, allocations: 63.84 kB / 376.9 MB, free: 3.758 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.002657, allocations: 0 / 376.9 MB, free: 3.758 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.002658, allocations: 0 / 376.9 MB, free: 3.758 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.002662, allocations: 0 / 376.9 MB, free: 3.758 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002861/0.002948, allocations: 389.9 kB / 377.3 MB, free: 3.332 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.002983, allocations: 8.031 kB / 377.3 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.1e-05/0.003024, allocations: 4.938 kB / 377.3 MB, free: 3.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.099e-05/0.003085, allocations: 108.6 kB / 377.4 MB, free: 3.188 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.003096, allocations: 4.375 kB / 377.4 MB, free: 3.184 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.003107, allocations: 4.312 kB / 377.4 MB, free: 3.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.51e-05/0.003192, allocations: 55.97 kB / 377.5 MB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.003203, allocations: 192 / 377.5 MB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.689e-06/0.003213, allocations: 4.359 kB / 377.5 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.00322, allocations: 384 / 377.5 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.942e-05/0.003239, allocations: 29.64 kB / 377.5 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.742e-05/0.003327, allocations: 112.6 kB / 377.6 MB, free: 2.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.309e-05/0.00337, allocations: 56.8 kB / 377.7 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.109e-05/0.003391, allocations: 41.33 kB / 377.7 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-06/0.003395, allocations: 4 kB / 377.7 MB, free: 2.801 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.003433, allocations: 63.14 kB / 377.8 MB, free: 2.723 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.003433, allocations: 4 kB / 377.8 MB, free: 2.719 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001577/0.003591, allocations: 114.8 kB / 377.9 MB, free: 2.582 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.003628, allocations: 77.11 kB / 378 MB, free: 2.488 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.214e-05/0.00367, allocations: 146.2 kB / 378.1 MB, free: 2.332 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.965e-06/0.003678, allocations: 25.7 kB / 378.2 MB, free: 2.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.986e-05/0.003708, allocations: 126.9 kB / 378.3 MB, free: 2.172 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.556e-05/0.003723, allocations: 352 / 378.3 MB, free: 2.172 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.322e-05/0.003746, allocations: 19.38 kB / 378.3 MB, free: 2.145 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.003858, allocations: 0.4924 MB / 378.8 MB, free: 1.641 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.828e-05/0.003876, allocations: 33.64 kB / 378.8 MB, free: 1.602 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.405e-05/0.00389, allocations: 25.7 kB / 378.9 MB, free: 1.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.098e-05/0.003931, allocations: 67.03 kB / 378.9 MB, free: 1.488 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.003932, allocations: 0 / 378.9 MB, free: 1.488 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.698e-05/0.003999, allocations: 97.05 kB / 379 MB, free: 1.375 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.004026, allocations: 29.7 kB / 379 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.004031, allocations: 0 / 379 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.004047, allocations: 0 / 379 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.917e-06/0.004051, allocations: 4.094 kB / 379 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.004056, allocations: 4 kB / 379 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.304e-05/0.004069, allocations: 3.938 kB / 379.1 MB, free: 1.328 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.004077, allocations: 7.922 kB / 379.1 MB, free: 1.32 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.836e-05/0.004145, allocations: 182.3 kB / 379.2 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.14e-06/0.00415, allocations: 3.984 kB / 379.2 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.062e-05/0.004161, allocations: 3 kB / 379.2 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.004162, allocations: 0 / 379.2 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.004167, allocations: 4 kB / 379.2 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.634e-06/0.004169, allocations: 0 / 379.2 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.499e-05/0.004224, allocations: 112.6 kB / 379.4 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.004225, allocations: 4 kB / 379.4 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.004225, allocations: 0 / 379.4 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.004227, allocations: 0 / 379.4 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.004234, allocations: 4 kB / 379.4 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.1e-07/0.004234, allocations: 0 / 379.4 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.004236, allocations: 4 kB / 379.4 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.494e-05/0.004321, allocations: 131.8 kB / 379.5 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-06/0.004325, allocations: 0 / 379.5 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.309e-05/0.004338, allocations: 4 kB / 379.5 MB, free: 0.793 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.47e-06/0.004344, allocations: 3.938 kB / 379.5 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.167e-05/0.004355, allocations: 4.031 kB / 379.5 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.004357, allocations: 0 / 379.5 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.941e-05/0.004386, allocations: 123.2 kB / 379.6 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004386, allocations: 0 / 379.6 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001462/0.004533, allocations: 23.92 kB / 379.7 MB, free: 0.6406 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0005121/0.005045, allocations: 313.8 kB / 380 MB, free: 420 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.949e-05/0.005144, allocations: 118.5 kB / 380.1 MB, free: 272 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.005146, allocations: 0 / 380.1 MB, free: 272 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.109e-05/0.005177, allocations: 96.84 kB / 380.2 MB, free: 152 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.919e-05/0.005266, allocations: 3.984 kB / 380.2 MB, free: 148 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001862/0.005452, allocations: 113.8 kB / 380.3 MB, free: 15.99 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.095e-05/0.005483, allocations: 59.3 kB / 380.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.681e-06/0.005489, allocations: 0 / 380.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.21e-05/0.005501, allocations: 8.5 kB / 380.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.005502, allocations: 0 / 380.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of Templates: time 0.002858/0.00836, allocations: 0.8404 MB / 381.2 MB, free: 15.07 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.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: 3.1029897136613727]