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.004066/0.004066, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.00157/0.00157, allocations: 158.7 kB / 24.91 MB, free: 8.719 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.976/0.976, allocations: 177 MB / 205.2 MB, free: 5.023 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.2508/0.2508, allocations: 34.86 MB / 296.6 MB, free: 464 kB / 266.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.352e-06/1.352e-06, allocations: 0 / 325.9 MB, free: 7.133 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.643e-05/1.778e-05, allocations: 5.266 kB / 325.9 MB, free: 7.129 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00107/0.001087, allocations: 0.5312 MB / 326.5 MB, free: 6.598 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004415/0.001529, allocations: 263.1 kB / 326.7 MB, free: 6.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.897e-05/0.001548, allocations: 0 / 326.7 MB, free: 6.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.234e-05/0.00156, allocations: 0 / 326.7 MB, free: 6.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.711e-06/0.001566, allocations: 0 / 326.7 MB, free: 6.34 MB / 298.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.0002478/0.001814, allocations: 47.7 kB / 326.8 MB, free: 6.293 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.549e-05/0.001859, allocations: 8 kB / 326.8 MB, free: 6.285 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.555e-05/0.001895, allocations: 12.59 kB / 326.8 MB, free: 6.273 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.565e-05/0.00192, allocations: 4 kB / 326.8 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.281e-05/0.001943, allocations: 0 / 326.8 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.278e-06/0.001952, allocations: 7.938 kB / 326.8 MB, free: 6.262 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.002084, allocations: 63.83 kB / 326.9 MB, free: 6.199 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.121e-06/0.00209, allocations: 0 / 326.9 MB, free: 6.199 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.571e-05/0.002106, allocations: 4 kB / 326.9 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.002208, allocations: 63.84 kB / 326.9 MB, free: 6.133 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.00221, allocations: 0 / 326.9 MB, free: 6.133 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.00221, allocations: 0 / 326.9 MB, free: 6.133 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.796e-06/0.002213, allocations: 0 / 326.9 MB, free: 6.133 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.0001931/0.002406, allocations: 258.3 kB / 327.2 MB, free: 5.848 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.002445, allocations: 12.03 kB / 327.2 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.211e-05/0.002467, allocations: 4.938 kB / 327.2 MB, free: 5.832 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.907e-05/0.002516, allocations: 105.8 kB / 327.3 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.084e-06/0.002523, allocations: 384 / 327.3 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.628e-06/0.002528, allocations: 384 / 327.3 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.875e-05/0.002586, allocations: 67.83 kB / 327.4 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.38e-06/0.002592, allocations: 192 / 327.4 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.05e-06/0.002597, allocations: 384 / 327.4 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.0026, allocations: 384 / 327.4 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.524e-05/0.002616, allocations: 33.64 kB / 327.4 MB, free: 5.586 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.322e-05/0.002669, allocations: 57.05 kB / 327.5 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.082e-05/0.00271, allocations: 48.31 kB / 327.5 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.552e-05/0.002725, allocations: 34.55 kB / 327.5 MB, free: 5.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-06/0.002728, allocations: 0 / 327.5 MB, free: 5.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.002754, allocations: 64.27 kB / 327.6 MB, free: 5.332 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.002755, allocations: 0 / 327.6 MB, free: 5.332 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.22e-05/0.002847, allocations: 110.8 kB / 327.7 MB, free: 5.199 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.002878, allocations: 85.09 kB / 327.8 MB, free: 5.098 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.739e-05/0.002905, allocations: 93.84 kB / 327.9 MB, free: 4.996 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.057e-06/0.002914, allocations: 25.7 kB / 327.9 MB, free: 4.965 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.676e-05/0.002931, allocations: 84.27 kB / 328 MB, free: 4.879 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.478e-05/0.002946, allocations: 1.375 kB / 328 MB, free: 4.879 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.002969, allocations: 13.72 kB / 328 MB, free: 4.859 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.71e-05/0.003036, allocations: 314.8 kB / 328.3 MB, free: 4.543 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.27e-05/0.003049, allocations: 25.7 kB / 328.3 MB, free: 4.512 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.292e-05/0.003061, allocations: 33.64 kB / 328.4 MB, free: 4.473 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.941e-05/0.003101, allocations: 64.25 kB / 328.4 MB, free: 4.395 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.003103, allocations: 0 / 328.4 MB, free: 4.395 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.039e-05/0.003153, allocations: 81.11 kB / 328.5 MB, free: 4.297 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.003179, allocations: 39.05 kB / 328.5 MB, free: 4.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.003184, allocations: 4 kB / 328.6 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.003194, allocations: 0 / 328.6 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.076e-06/0.003197, allocations: 3.984 kB / 328.6 MB, free: 4.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.974e-06/0.003199, allocations: 0 / 328.6 MB, free: 4.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.318e-06/0.003208, allocations: 0 / 328.6 MB, free: 4.246 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-06/0.003212, allocations: 0 / 328.6 MB, free: 4.246 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.573e-05/0.003268, allocations: 139.5 kB / 328.7 MB, free: 4.094 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.174e-06/0.003275, allocations: 7.922 kB / 328.7 MB, free: 4.086 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.973e-06/0.003282, allocations: 3 kB / 328.7 MB, free: 4.086 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.81e-07/0.003283, allocations: 4 kB / 328.7 MB, free: 4.082 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.003285, allocations: 4 kB / 328.7 MB, free: 4.078 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.003287, allocations: 3.938 kB / 328.7 MB, free: 4.074 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.563e-05/0.003333, allocations: 66.45 kB / 328.8 MB, free: 3.992 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.003334, allocations: 0 / 328.8 MB, free: 3.992 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.8e-07/0.003334, allocations: 0 / 328.8 MB, free: 3.992 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-07/0.003334, allocations: 4 kB / 328.8 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.007e-06/0.003338, allocations: 0 / 328.8 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.51e-07/0.003339, allocations: 0 / 328.8 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.00334, allocations: 0 / 328.8 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.394e-05/0.003404, allocations: 120.5 kB / 328.9 MB, free: 3.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.468e-06/0.003408, allocations: 8.375 kB / 328.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.877e-06/0.003417, allocations: 0 / 328.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.168e-06/0.003421, allocations: 0 / 328.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.494e-06/0.003429, allocations: 0 / 328.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.003431, allocations: 4 kB / 328.9 MB, free: 3.828 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.103e-06/0.003438, allocations: 12.8 kB / 328.9 MB, free: 3.812 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003438, allocations: 0 / 328.9 MB, free: 3.812 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001161/0.003554, allocations: 23.92 kB / 328.9 MB, free: 3.789 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.000541/0.004095, allocations: 323.9 kB / 329.3 MB, free: 3.602 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.997e-05/0.004175, allocations: 123.7 kB / 329.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.004177, allocations: 0 / 329.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.358e-05/0.004201, allocations: 85.97 kB / 329.5 MB, free: 3.348 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.518e-05/0.004246, allocations: 7.938 kB / 329.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000127/0.004373, allocations: 108.9 kB / 329.6 MB, free: 3.199 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.262e-05/0.004396, allocations: 51.36 kB / 329.6 MB, free: 3.129 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.408e-06/0.0044, allocations: 0 / 329.6 MB, free: 3.129 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.959e-05/0.00444, allocations: 51.38 kB / 329.7 MB, free: 3.078 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.00444, allocations: 3.938 kB / 329.7 MB, free: 3.074 MB / 298.7 MB Notification: Performance of Templates: time 0.002252/0.006693, allocations: 0.9485 MB / 330.6 MB, free: 2.129 MB / 298.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 -s gbode -gbm=radauIIA3 -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: 2.8315354813821614]