Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001033/0.001033, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.0009696/0.0009696, allocations: 172.7 kB / 24.91 MB, free: 9.148 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.041/1.041, allocations: 177.1 MB / 205.3 MB, free: 5.469 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.2778/0.2778, allocations: 34.25 MB / 296.1 MB, free: 0.7344 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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 325.2 MB, free: 7.695 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.236e-05/1.387e-05, allocations: 5.516 kB / 325.3 MB, free: 7.691 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001012/0.001025, allocations: 0.5365 MB / 325.8 MB, free: 7.152 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004243/0.00145, allocations: 263 kB / 326 MB, free: 6.895 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.787e-05/0.001468, allocations: 0 / 326 MB, free: 6.895 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.113e-05/0.001479, allocations: 4 kB / 326.1 MB, free: 6.891 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.969e-06/0.001484, allocations: 0 / 326.1 MB, free: 6.891 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453: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.0002429/0.001727, allocations: 55.69 kB / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.232e-05/0.001769, allocations: 0 / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.095e-05/0.0018, allocations: 12 kB / 326.1 MB, free: 6.824 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.613e-05/0.001826, allocations: 3.984 kB / 326.1 MB, free: 6.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.424e-05/0.00185, allocations: 0 / 326.1 MB, free: 6.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.117e-06/0.001859, allocations: 0 / 326.1 MB, free: 6.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.001995, allocations: 63.89 kB / 326.2 MB, free: 6.758 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.051e-06/0.002001, allocations: 0 / 326.2 MB, free: 6.758 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.248e-05/0.002013, allocations: 0 / 326.2 MB, free: 6.758 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.002116, allocations: 72.41 kB / 326.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.002119, allocations: 4 kB / 326.3 MB, free: 6.684 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.00212, allocations: 0 / 326.3 MB, free: 6.684 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.002123, allocations: 0 / 326.3 MB, free: 6.684 MB / 298.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.0001895/0.002313, allocations: 254.3 kB / 326.5 MB, free: 6.402 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.857e-05/0.002341, allocations: 12.03 kB / 326.5 MB, free: 6.391 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.088e-05/0.002362, allocations: 4.875 kB / 326.5 MB, free: 6.387 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.973e-05/0.002412, allocations: 105.8 kB / 326.6 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.365e-06/0.00242, allocations: 4.375 kB / 326.6 MB, free: 6.254 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.799e-06/0.002425, allocations: 384 / 326.6 MB, free: 6.254 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.412e-05/0.002479, allocations: 55.95 kB / 326.7 MB, free: 6.188 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.65e-06/0.002485, allocations: 4.188 kB / 326.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.959e-06/0.00249, allocations: 384 / 326.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.002493, allocations: 384 / 326.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.526e-05/0.002509, allocations: 37.62 kB / 326.7 MB, free: 6.141 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.407e-05/0.002563, allocations: 57.05 kB / 326.8 MB, free: 6.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002879/0.002851, allocations: 52.22 kB / 326.8 MB, free: 6.004 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.363e-05/0.002864, allocations: 34.66 kB / 326.9 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-06/0.002867, allocations: 0 / 326.9 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.002894, allocations: 60.25 kB / 326.9 MB, free: 5.887 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.31e-07/0.002895, allocations: 0 / 326.9 MB, free: 5.887 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 8.826e-05/0.002983, allocations: 110.8 kB / 327 MB, free: 5.754 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.003013, allocations: 81.05 kB / 327.1 MB, free: 5.656 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.679e-05/0.00304, allocations: 89.86 kB / 327.2 MB, free: 5.559 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.125e-06/0.003048, allocations: 29.83 kB / 327.2 MB, free: 5.523 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.784e-05/0.003066, allocations: 88.08 kB / 327.3 MB, free: 5.434 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.443e-05/0.00308, allocations: 5.359 kB / 327.3 MB, free: 5.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.719e-05/0.003097, allocations: 9.719 kB / 327.3 MB, free: 5.414 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.429e-05/0.003162, allocations: 318.8 kB / 327.6 MB, free: 5.094 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.183e-05/0.003173, allocations: 29.7 kB / 327.7 MB, free: 5.059 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.013e-05/0.003184, allocations: 25.7 kB / 327.7 MB, free: 5.027 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.326e-05/0.003217, allocations: 60.27 kB / 327.8 MB, free: 4.953 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.003218, allocations: 0 / 327.8 MB, free: 4.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.695e-05/0.003265, allocations: 97.09 kB / 327.8 MB, free: 4.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.003286, allocations: 29.7 kB / 327.9 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.003291, allocations: 0 / 327.9 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/0.0033, allocations: 0 / 327.9 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.383e-06/0.003301, allocations: 0 / 327.9 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.003306, allocations: 4 kB / 327.9 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.107e-06/0.003315, allocations: 0 / 327.9 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-06/0.003319, allocations: 0 / 327.9 MB, free: 4.801 MB / 298.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 5.639e-05/0.003376, allocations: 147.5 kB / 328 MB, free: 4.641 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.088e-06/0.00338, allocations: 0 / 328 MB, free: 4.641 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.124e-06/0.003387, allocations: 7.031 kB / 328 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.003388, allocations: 0 / 328 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-06/0.003389, allocations: 0 / 328 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-06/0.003391, allocations: 0 / 328 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.863e-05/0.003429, allocations: 65.84 kB / 328.1 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.00343, allocations: 0 / 328.1 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.363e-06/0.003431, allocations: 4 kB / 328.1 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.003433, allocations: 3.984 kB / 328.1 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.436e-06/0.003436, allocations: 0 / 328.1 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.003438, allocations: 4 kB / 328.1 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.003439, allocations: 0 / 328.1 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.951e-05/0.003498, allocations: 124.4 kB / 328.2 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.787e-06/0.003502, allocations: 352 / 328.2 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.047e-05/0.003513, allocations: 4 kB / 328.2 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.558e-06/0.003517, allocations: 0 / 328.2 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.514e-06/0.003525, allocations: 0 / 328.2 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-06/0.003526, allocations: 0 / 328.2 MB, free: 4.387 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.681e-06/0.003532, allocations: 4.859 kB / 328.2 MB, free: 4.379 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003532, allocations: 3.938 kB / 328.2 MB, free: 4.375 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001215/0.003653, allocations: 27.92 kB / 328.3 MB, free: 4.348 MB / 298.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.000551/0.004204, allocations: 335 kB / 328.6 MB, free: 4.152 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.462e-05/0.004289, allocations: 116.2 kB / 328.7 MB, free: 4.012 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.004291, allocations: 0 / 328.7 MB, free: 4.012 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.893e-05/0.00432, allocations: 93.89 kB / 328.8 MB, free: 3.898 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.307e-05/0.004363, allocations: 3.938 kB / 328.8 MB, free: 3.895 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000138/0.004501, allocations: 116.6 kB / 328.9 MB, free: 3.746 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.704e-05/0.004528, allocations: 55.34 kB / 329 MB, free: 3.672 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.56e-06/0.004534, allocations: 0 / 329 MB, free: 3.672 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.134e-05/0.004565, allocations: 51.38 kB / 329 MB, free: 3.621 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.004566, allocations: 4.125 kB / 329 MB, free: 3.617 MB / 298.7 MB Notification: Performance of Templates: time 0.002301/0.006867, allocations: 0.9298 MB / 330 MB, free: 2.691 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.8989447597414255]