Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001064/0.001064, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001576/0.002639, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001113, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001566/0.00268, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9753/0.9753, allocations: 177.5 MB / 190 MB, free: 4.82 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08861/1.064, allocations: 53.87 MB / 243.9 MB, free: 14.88 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2727/0.2727, allocations: 34.88 MB / 279.5 MB, free: 14.93 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03601/0.3087, allocations: 13.23 MB / 292.8 MB, free: 6.418 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 294.1 MB, free: 5.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.177e-05/2.301e-05, allocations: 2.969 kB / 294.1 MB, free: 5.148 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001169/0.001192, allocations: 0.5429 MB / 294.6 MB, free: 4.609 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003323/0.001524, allocations: 275.4 kB / 294.9 MB, free: 4.344 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.252e-05/0.001537, allocations: 4 kB / 294.9 MB, free: 4.34 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.627e-06/0.001541, allocations: 0 / 294.9 MB, free: 4.34 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.72e-07/0.001541, allocations: 0 / 294.9 MB, free: 4.34 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464: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.0001483/0.00169, allocations: 51.64 kB / 294.9 MB, free: 4.289 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.223e-05/0.001742, allocations: 4 kB / 294.9 MB, free: 4.285 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.443e-05/0.001776, allocations: 7.984 kB / 294.9 MB, free: 4.277 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.013e-05/0.001807, allocations: 0 / 294.9 MB, free: 4.277 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.63e-05/0.001843, allocations: 7.938 kB / 294.9 MB, free: 4.27 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.367e-06/0.001852, allocations: 0 / 294.9 MB, free: 4.27 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000168/0.00202, allocations: 67.88 kB / 295 MB, free: 4.203 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.475e-05/0.002035, allocations: 4 kB / 295 MB, free: 4.199 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.472e-05/0.00205, allocations: 4 kB / 295 MB, free: 4.195 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.002168, allocations: 55.83 kB / 295.1 MB, free: 4.141 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.015e-05/0.002178, allocations: 0 / 295.1 MB, free: 4.141 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.002178, allocations: 0 / 295.1 MB, free: 4.141 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.637e-06/0.002187, allocations: 0 / 295.1 MB, free: 4.141 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002483/0.002435, allocations: 266.2 kB / 295.3 MB, free: 3.848 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.88e-05/0.002464, allocations: 8.922 kB / 295.3 MB, free: 3.84 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.071e-05/0.002495, allocations: 4.938 kB / 295.3 MB, free: 3.836 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.962e-05/0.002554, allocations: 105.8 kB / 295.4 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-06/0.002564, allocations: 384 / 295.4 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.175e-06/0.002572, allocations: 384 / 295.4 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.924e-05/0.002641, allocations: 67.95 kB / 295.5 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-06/0.002647, allocations: 4.125 kB / 295.5 MB, free: 3.625 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.941e-06/0.002653, allocations: 4.375 kB / 295.5 MB, free: 3.621 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.002657, allocations: 384 / 295.5 MB, free: 3.621 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.54e-05/0.002673, allocations: 33.64 kB / 295.6 MB, free: 3.582 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.974e-05/0.002733, allocations: 53.05 kB / 295.6 MB, free: 3.516 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.697e-05/0.00277, allocations: 48.31 kB / 295.7 MB, free: 3.453 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.988e-05/0.002789, allocations: 34.55 kB / 295.7 MB, free: 3.41 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-06/0.002793, allocations: 4.062 kB / 295.7 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.002829, allocations: 56.27 kB / 295.7 MB, free: 3.336 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.41e-07/0.00283, allocations: 0 / 295.7 MB, free: 3.336 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001106/0.00294, allocations: 114.8 kB / 295.9 MB, free: 3.199 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.002999, allocations: 162.2 kB / 296 MB, free: 3.004 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.814e-05/0.003027, allocations: 93.84 kB / 296.1 MB, free: 2.902 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.488e-06/0.003037, allocations: 25.7 kB / 296.1 MB, free: 2.871 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.73e-05/0.003054, allocations: 84.27 kB / 296.2 MB, free: 2.785 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.003073, allocations: 4.688 kB / 296.2 MB, free: 2.781 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.229e-05/0.003096, allocations: 9.719 kB / 296.2 MB, free: 2.766 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.228e-05/0.003168, allocations: 318.8 kB / 296.5 MB, free: 2.445 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.504e-05/0.003183, allocations: 25.7 kB / 296.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.14e-05/0.003194, allocations: 29.69 kB / 296.6 MB, free: 2.379 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.171e-05/0.003236, allocations: 64.2 kB / 296.7 MB, free: 2.301 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.003238, allocations: 4 kB / 296.7 MB, free: 2.297 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.281e-05/0.003291, allocations: 85.05 kB / 296.7 MB, free: 2.195 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.003326, allocations: 36.44 kB / 296.8 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.003331, allocations: 4 kB / 296.8 MB, free: 2.152 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.003342, allocations: 4 kB / 296.8 MB, free: 2.148 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.433e-06/0.003343, allocations: 0 / 296.8 MB, free: 2.148 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.585e-06/0.003346, allocations: 0 / 296.8 MB, free: 2.148 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.442e-05/0.00336, allocations: 0 / 296.8 MB, free: 2.148 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.003367, allocations: 0 / 296.8 MB, free: 2.148 MB / 282.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.767e-05/0.003425, allocations: 143.5 kB / 296.9 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.717e-06/0.003429, allocations: 0 / 296.9 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.625e-06/0.003436, allocations: 6.984 kB / 296.9 MB, free: 1.988 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.003438, allocations: 4 kB / 296.9 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/0.00344, allocations: 4 kB / 296.9 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.003442, allocations: 0 / 296.9 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.521e-05/0.003487, allocations: 61.84 kB / 297 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-07/0.003487, allocations: 3.938 kB / 297 MB, free: 1.898 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.003488, allocations: 0 / 297 MB, free: 1.898 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.859e-06/0.003493, allocations: 7.984 kB / 297 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.71e-07/0.003493, allocations: 0 / 297 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-06/0.003496, allocations: 0 / 297 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.003497, allocations: 0 / 297 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.003498, allocations: 0 / 297 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.559e-05/0.003563, allocations: 120.5 kB / 297.1 MB, free: 1.742 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.709e-06/0.003573, allocations: 0 / 297.1 MB, free: 1.742 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.841e-06/0.003579, allocations: 4 kB / 297.1 MB, free: 1.738 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.12e-05/0.00359, allocations: 3.984 kB / 297.1 MB, free: 1.734 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.003593, allocations: 4 kB / 297.1 MB, free: 1.73 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.013e-06/0.0036, allocations: 4.859 kB / 297.2 MB, free: 1.723 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0036, allocations: 0 / 297.2 MB, free: 1.723 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001412/0.003741, allocations: 23.94 kB / 297.2 MB, free: 1.699 MB / 282.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.0006488/0.00439, allocations: 362.2 kB / 297.5 MB, free: 1.496 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.004496, allocations: 127.6 kB / 297.7 MB, free: 1.344 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.0045, allocations: 4 kB / 297.7 MB, free: 1.34 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.229e-05/0.004533, allocations: 85.97 kB / 297.7 MB, free: 1.234 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.465e-05/0.004587, allocations: 11.92 kB / 297.8 MB, free: 1.223 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00015/0.004737, allocations: 109.4 kB / 297.9 MB, free: 1.082 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.302e-05/0.00477, allocations: 55.34 kB / 297.9 MB, free: 1.008 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.012e-06/0.004776, allocations: 0 / 297.9 MB, free: 1.008 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.556e-05/0.004812, allocations: 51.38 kB / 298 MB, free: 0.957 MB / 282.7 MB Notification: Performance of SimCode: time 4.51e-07/0.004812, allocations: 192 / 298 MB, free: 0.957 MB / 282.7 MB Notification: Performance of Templates: time 0.002261/0.007073, allocations: 0.9574 MB / 298.9 MB, free: 4 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.885996285825968]