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.0009279/0.0009279, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 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.000983/0.000983, allocations: 159.4 kB / 25.61 MB, free: 8.582 MB / 18.57 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.9125/0.9125, allocations: 177 MB / 205.9 MB, free: 4.461 MB / 186.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.1425/0.1425, allocations: 34.88 MB / 297.4 MB, free: 13.34 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.283e-06/1.283e-06, allocations: 0 / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.638e-06/1.092e-05, allocations: 4.734 kB / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0007976/0.0008085, allocations: 497.8 kB / 380.5 MB, free: 22.3 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003457/0.001154, allocations: 257.1 kB / 380.7 MB, free: 22.05 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.053e-05/0.001175, allocations: 3.938 kB / 380.7 MB, free: 22.05 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.319e-05/0.001188, allocations: 3.938 kB / 380.7 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.179e-06/0.001193, allocations: 4 kB / 380.7 MB, free: 22.04 MB / 314.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.0002376/0.001431, allocations: 51.75 kB / 380.8 MB, free: 21.99 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.013e-05/0.001471, allocations: 4 kB / 380.8 MB, free: 21.98 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.807e-05/0.001499, allocations: 0 / 380.8 MB, free: 21.98 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.074e-05/0.00152, allocations: 0 / 380.8 MB, free: 21.98 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.404e-05/0.001544, allocations: 7.984 kB / 380.8 MB, free: 21.98 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.446e-06/0.001552, allocations: 0 / 380.8 MB, free: 21.98 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.001654, allocations: 67.88 kB / 380.8 MB, free: 21.91 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.692e-06/0.00166, allocations: 0 / 380.8 MB, free: 21.91 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.283e-05/0.001673, allocations: 0 / 380.8 MB, free: 21.91 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 8.967e-05/0.001763, allocations: 59.81 kB / 380.9 MB, free: 21.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.001765, allocations: 4 kB / 380.9 MB, free: 21.85 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.001765, allocations: 4 kB / 380.9 MB, free: 21.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.00177, allocations: 0 / 380.9 MB, free: 21.84 MB / 314.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.0001615/0.001931, allocations: 385.9 kB / 381.3 MB, free: 21.42 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.78e-05/0.001959, allocations: 8.031 kB / 381.3 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.148e-05/0.00198, allocations: 8.875 kB / 381.3 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.379e-05/0.002014, allocations: 108.6 kB / 381.4 MB, free: 21.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.002024, allocations: 384 / 381.4 MB, free: 21.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.581e-06/0.002029, allocations: 384 / 381.4 MB, free: 21.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.079e-05/0.00208, allocations: 59.97 kB / 381.5 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.002086, allocations: 4.188 kB / 381.5 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.749e-06/0.002091, allocations: 384 / 381.5 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.002095, allocations: 384 / 381.5 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.738e-06/0.002104, allocations: 33.64 kB / 381.5 MB, free: 21.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 4.685e-05/0.002151, allocations: 93.25 kB / 381.6 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.83e-05/0.00218, allocations: 56.73 kB / 381.7 MB, free: 20.97 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.046e-05/0.00219, allocations: 41.39 kB / 381.7 MB, free: 20.92 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-06/0.002193, allocations: 0 / 381.7 MB, free: 20.92 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.002211, allocations: 63.16 kB / 381.8 MB, free: 20.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 4.91e-07/0.002211, allocations: 0 / 381.8 MB, free: 20.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001155/0.002327, allocations: 122.8 kB / 381.9 MB, free: 20.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.751e-05/0.002344, allocations: 81.05 kB / 382 MB, free: 20.6 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.441e-05/0.002359, allocations: 142.2 kB / 382.1 MB, free: 20.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.467e-06/0.002362, allocations: 25.7 kB / 382.1 MB, free: 20.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.975e-06/0.00237, allocations: 130.9 kB / 382.2 MB, free: 20.28 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.749e-06/0.00238, allocations: 0 / 382.2 MB, free: 20.28 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.481e-05/0.002395, allocations: 15.38 kB / 382.3 MB, free: 20.26 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.499e-05/0.002429, allocations: 0.4922 MB / 382.8 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.236e-06/0.002438, allocations: 29.69 kB / 382.8 MB, free: 19.72 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.322e-06/0.002444, allocations: 29.64 kB / 382.8 MB, free: 19.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.17e-05/0.002466, allocations: 67.28 kB / 382.9 MB, free: 19.6 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.002467, allocations: 0 / 382.9 MB, free: 19.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.246e-05/0.002499, allocations: 93.09 kB / 383 MB, free: 19.49 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.002513, allocations: 33.64 kB / 383 MB, free: 19.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.002517, allocations: 4 kB / 383 MB, free: 19.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.416e-06/0.002525, allocations: 0 / 383 MB, free: 19.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.002526, allocations: 0 / 383 MB, free: 19.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.274e-06/0.002529, allocations: 3.984 kB / 383 MB, free: 19.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.328e-06/0.002538, allocations: 0 / 383 MB, free: 19.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-06/0.002543, allocations: 0 / 383 MB, free: 19.45 MB / 314.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 3.258e-05/0.002575, allocations: 190.2 kB / 383.2 MB, free: 19.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.268e-06/0.002579, allocations: 352 / 383.2 MB, free: 19.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.022e-06/0.002585, allocations: 3 kB / 383.2 MB, free: 19.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.002587, allocations: 7.984 kB / 383.2 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-06/0.002588, allocations: 0 / 383.2 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.00259, allocations: 0 / 383.2 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.826e-05/0.002618, allocations: 93.2 kB / 383.3 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-07/0.002619, allocations: 0 / 383.3 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.51e-07/0.002619, allocations: 0 / 383.3 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.00262, allocations: 8 kB / 383.3 MB, free: 19.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.226e-06/0.002623, allocations: 4 kB / 383.3 MB, free: 19.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.41e-07/0.002624, allocations: 0 / 383.3 MB, free: 19.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.002624, allocations: 0 / 383.3 MB, free: 19.11 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.212e-05/0.002676, allocations: 139.7 kB / 383.4 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.817e-06/0.00268, allocations: 3.984 kB / 383.5 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.546e-06/0.002689, allocations: 4 kB / 383.5 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.088e-06/0.002693, allocations: 0 / 383.5 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.103e-06/0.0027, allocations: 0 / 383.5 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.002702, allocations: 3.984 kB / 383.5 MB, free: 18.92 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.069e-05/0.002713, allocations: 119.2 kB / 383.6 MB, free: 18.8 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.002713, allocations: 4 kB / 383.6 MB, free: 18.8 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001381/0.002851, allocations: 23.97 kB / 383.6 MB, free: 18.78 MB / 314.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.0004786/0.003329, allocations: 307 kB / 383.9 MB, free: 18.56 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.092e-05/0.00339, allocations: 122.5 kB / 384 MB, free: 18.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.003391, allocations: 0 / 384 MB, free: 18.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.735e-05/0.003409, allocations: 96.78 kB / 384.1 MB, free: 18.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000108/0.003517, allocations: 7.875 kB / 384.1 MB, free: 18.29 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001092/0.003626, allocations: 107.6 kB / 384.2 MB, free: 18.15 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.547e-05/0.003641, allocations: 59.34 kB / 384.3 MB, free: 18.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.929e-06/0.003646, allocations: 4 kB / 384.3 MB, free: 18.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.402e-05/0.00367, allocations: 70.2 kB / 384.4 MB, free: 18 MB / 314.7 MB Notification: Performance of SimCode: time 3.71e-07/0.003671, allocations: 0 / 384.4 MB, free: 18 MB / 314.7 MB Notification: Performance of Templates: time 0.002249/0.00592, allocations: 0.9283 MB / 385.3 MB, free: 17.07 MB / 314.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.017891873139888]