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.0008408/0.0008408, allocations: 84.73 kB / 21.5 MB, free: 2.984 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.001013/0.001013, allocations: 159.7 kB / 24.91 MB, free: 8.711 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.9726/0.9726, allocations: 177 MB / 205.2 MB, free: 5.422 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.2939/0.2939, allocations: 34.87 MB / 296.6 MB, free: 0.5039 MB / 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.413e-06/1.413e-06, allocations: 0 / 325.9 MB, free: 7.199 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.522e-05/2.663e-05, allocations: 3.625 kB / 325.9 MB, free: 7.195 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001245/0.001272, allocations: 492.2 kB / 326.4 MB, free: 6.715 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004526/0.001725, allocations: 263.1 kB / 326.6 MB, free: 6.457 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.971e-05/0.001744, allocations: 0 / 326.6 MB, free: 6.457 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.308e-05/0.001757, allocations: 3.938 kB / 326.6 MB, free: 6.453 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.242e-06/0.001764, allocations: 0 / 326.6 MB, free: 6.453 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.0002871/0.002051, allocations: 59.62 kB / 326.7 MB, free: 6.395 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.434e-05/0.002095, allocations: 4 kB / 326.7 MB, free: 6.391 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.402e-05/0.002129, allocations: 4.625 kB / 326.7 MB, free: 6.387 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.82e-05/0.002157, allocations: 0 / 326.7 MB, free: 6.387 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.405e-05/0.002181, allocations: 0 / 326.7 MB, free: 6.387 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.378e-06/0.002191, allocations: 4 kB / 326.7 MB, free: 6.383 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.002318, allocations: 71.88 kB / 326.8 MB, free: 6.312 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.456e-06/0.002327, allocations: 3.984 kB / 326.8 MB, free: 6.309 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.416e-05/0.002341, allocations: 0 / 326.8 MB, free: 6.309 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.002444, allocations: 55.88 kB / 326.8 MB, free: 6.254 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.002446, allocations: 0 / 326.8 MB, free: 6.254 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.002447, allocations: 0 / 326.8 MB, free: 6.254 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.916e-06/0.00245, allocations: 0 / 326.8 MB, free: 6.254 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.0002139/0.002664, allocations: 258.2 kB / 327.1 MB, free: 5.969 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.979e-05/0.002693, allocations: 8.031 kB / 327.1 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.375e-05/0.002717, allocations: 8.938 kB / 327.1 MB, free: 5.953 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.527e-05/0.002772, allocations: 117.7 kB / 327.2 MB, free: 5.812 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.446e-06/0.002781, allocations: 384 / 327.2 MB, free: 5.812 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.575e-06/0.002788, allocations: 384 / 327.2 MB, free: 5.812 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.406e-05/0.002853, allocations: 55.97 kB / 327.3 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.28e-06/0.002858, allocations: 192 / 327.3 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.73e-06/0.002864, allocations: 384 / 327.3 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.002867, allocations: 384 / 327.3 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.635e-05/0.002884, allocations: 37.64 kB / 327.3 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.135e-05/0.002945, allocations: 57.03 kB / 327.4 MB, free: 5.633 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.455e-05/0.00299, allocations: 52.25 kB / 327.4 MB, free: 5.566 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.435e-05/0.003004, allocations: 34.56 kB / 327.4 MB, free: 5.523 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.27e-06/0.003009, allocations: 8.047 kB / 327.5 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.003043, allocations: 56.27 kB / 327.5 MB, free: 5.445 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.91e-07/0.003044, allocations: 0 / 327.5 MB, free: 5.445 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000123/0.003167, allocations: 114.8 kB / 327.6 MB, free: 5.309 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.003215, allocations: 77.11 kB / 327.7 MB, free: 5.215 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.804e-05/0.003263, allocations: 89.86 kB / 327.8 MB, free: 5.117 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.003278, allocations: 33.64 kB / 327.8 MB, free: 5.078 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.746e-05/0.003305, allocations: 80.14 kB / 327.9 MB, free: 4.996 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.003331, allocations: 1.5 kB / 327.9 MB, free: 4.996 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.003358, allocations: 17.72 kB / 327.9 MB, free: 4.973 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.003472, allocations: 314.8 kB / 328.2 MB, free: 4.656 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.963e-05/0.003501, allocations: 33.69 kB / 328.3 MB, free: 4.617 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.925e-05/0.003521, allocations: 25.7 kB / 328.3 MB, free: 4.586 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.267e-05/0.003583, allocations: 64.25 kB / 328.3 MB, free: 4.508 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.003587, allocations: 0 / 328.3 MB, free: 4.508 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.447e-05/0.003661, allocations: 85.09 kB / 328.4 MB, free: 4.406 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/0.003694, allocations: 33.7 kB / 328.5 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.0037, allocations: 0 / 328.5 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.003711, allocations: 4.094 kB / 328.5 MB, free: 4.363 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.116e-06/0.003714, allocations: 7.875 kB / 328.5 MB, free: 4.355 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-06/0.003717, allocations: 0 / 328.5 MB, free: 4.355 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.329e-05/0.00373, allocations: 0 / 328.5 MB, free: 4.355 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.003737, allocations: 4 kB / 328.5 MB, free: 4.352 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 6.902e-05/0.003806, allocations: 135.5 kB / 328.6 MB, free: 4.203 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.462e-06/0.003812, allocations: 4 kB / 328.6 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.067e-05/0.003823, allocations: 10.98 kB / 328.6 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.003825, allocations: 0 / 328.6 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.003827, allocations: 0 / 328.6 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.003829, allocations: 4 kB / 328.6 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.781e-05/0.003877, allocations: 66.59 kB / 328.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-07/0.003877, allocations: 0 / 328.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.003878, allocations: 0 / 328.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.31e-07/0.003878, allocations: 0 / 328.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.238e-06/0.003882, allocations: 0 / 328.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.003883, allocations: 0 / 328.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.003885, allocations: 4 kB / 328.7 MB, free: 4.102 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.599e-05/0.003961, allocations: 120.4 kB / 328.8 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.027e-06/0.003965, allocations: 352 / 328.8 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.011e-05/0.003975, allocations: 0 / 328.8 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.779e-06/0.00398, allocations: 4.031 kB / 328.8 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.738e-06/0.00399, allocations: 7.984 kB / 328.8 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.003994, allocations: 0 / 328.8 MB, free: 3.941 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.807e-06/0.004003, allocations: 4.859 kB / 328.8 MB, free: 3.934 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.004003, allocations: 0 / 328.8 MB, free: 3.934 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001365/0.004139, allocations: 23.94 kB / 328.8 MB, free: 3.91 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.0006796/0.004819, allocations: 326.1 kB / 329.2 MB, free: 3.719 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001062/0.004925, allocations: 119.6 kB / 329.3 MB, free: 3.574 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.004929, allocations: 4.062 kB / 329.3 MB, free: 3.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.84e-05/0.004957, allocations: 89.97 kB / 329.4 MB, free: 3.461 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.772e-05/0.005005, allocations: 7.938 kB / 329.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001823/0.005187, allocations: 112.8 kB / 329.5 MB, free: 3.309 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.604e-05/0.005213, allocations: 51.36 kB / 329.5 MB, free: 3.238 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.19e-06/0.005218, allocations: 0 / 329.5 MB, free: 3.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.506e-05/0.005253, allocations: 51.38 kB / 329.6 MB, free: 3.188 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.005254, allocations: 0 / 329.6 MB, free: 3.188 MB / 298.7 MB Notification: Performance of Templates: time 0.002532/0.007786, allocations: 0.9376 MB / 330.5 MB, free: 2.254 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 -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.7772094937972724]