Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.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.001019/0.001019, allocations: 79.69 kB / 21.7 MB, free: 2.844 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.001091/0.001091, allocations: 157.8 kB / 24.99 MB, free: 8.25 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.9419/0.9419, allocations: 177 MB / 205.2 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 272.9 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.797e-05/1.972e-05, allocations: 2.312 kB / 272.9 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002156/0.002175, allocations: 1.24 MB / 274.2 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002609/0.004785, allocations: 2.169 MB / 276.4 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.744e-05/0.004812, allocations: 0 / 276.4 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.807e-05/0.00483, allocations: 0 / 276.4 MB, free: 14.36 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Examples.mo:279:3-378:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.0008923/0.005722, allocations: 478.2 kB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.805e-05/0.005741, allocations: 0 / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.441e-05/0.005785, allocations: 11.94 kB / 276.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.316e-05/0.005818, allocations: 11.97 kB / 276.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.111e-05/0.005849, allocations: 7.938 kB / 276.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.457e-05/0.005894, allocations: 4 kB / 276.9 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.005905, allocations: 0 / 276.9 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005258/0.006431, allocations: 499.2 kB / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.085e-05/0.006441, allocations: 0 / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.799e-05/0.006459, allocations: 4 kB / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000416/0.006875, allocations: 470.8 kB / 277.8 MB, free: 12.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.006878, allocations: 0 / 277.8 MB, free: 12.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.006879, allocations: 0 / 277.8 MB, free: 12.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.006882, allocations: 4 kB / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003304/0.007213, allocations: 447.7 kB / 278.2 MB, free: 12.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.007246, allocations: 11.98 kB / 278.3 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.748e-05/0.007304, allocations: 128.1 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001233/0.007427, allocations: 231.8 kB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.506e-05/0.007482, allocations: 246.7 kB / 278.9 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.764e-05/0.00753, allocations: 238.8 kB / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.503e-05/0.007585, allocations: 149.5 kB / 279.2 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.007609, allocations: 119.4 kB / 279.3 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.547e-05/0.007665, allocations: 238.8 kB / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-05/0.007714, allocations: 242.3 kB / 279.8 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.877e-05/0.007763, allocations: 246.4 kB / 280.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002027/0.007965, allocations: 0.5681 MB / 280.6 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.697e-05/0.008042, allocations: 273.4 kB / 280.9 MB, free: 9.688 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.062e-05/0.008073, allocations: 126.9 kB / 281 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.008097, allocations: 119.2 kB / 281.1 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.638e-05/0.008174, allocations: 49.06 kB / 281.2 MB, free: 9.379 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.114e-06/0.008176, allocations: 0 / 281.2 MB, free: 9.379 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001154/0.008291, allocations: 37.64 kB / 281.2 MB, free: 9.336 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.912e-05/0.00832, allocations: 55.34 kB / 281.3 MB, free: 9.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.962e-05/0.0084, allocations: 170 kB / 281.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.576e-06/0.008409, allocations: 25.7 kB / 281.5 MB, free: 9.055 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.355e-05/0.008442, allocations: 126.9 kB / 281.6 MB, free: 8.926 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.307e-05/0.008455, allocations: 7.953 kB / 281.6 MB, free: 8.918 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.008478, allocations: 19.38 kB / 281.6 MB, free: 8.891 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.926e-05/0.008577, allocations: 496.1 kB / 282.1 MB, free: 8.395 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.863e-06/0.008584, allocations: 0 / 282.1 MB, free: 8.395 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.707e-06/0.008588, allocations: 0 / 282.1 MB, free: 8.395 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.936e-05/0.008607, allocations: 19.56 kB / 282.1 MB, free: 8.371 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.008609, allocations: 64 / 282.1 MB, free: 8.371 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.291e-05/0.008641, allocations: 37.7 kB / 282.2 MB, free: 8.328 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.008656, allocations: 10.66 kB / 282.2 MB, free: 8.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.008659, allocations: 0 / 282.2 MB, free: 8.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.00867, allocations: 0 / 282.2 MB, free: 8.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.694e-05/0.008687, allocations: 3.938 kB / 282.2 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.008691, allocations: 0 / 282.2 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.177e-05/0.008703, allocations: 3.984 kB / 282.2 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-06/0.008708, allocations: 0 / 282.2 MB, free: 8.312 MB / 266.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 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.688e-05/0.008765, allocations: 156.6 kB / 282.3 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.498e-06/0.008769, allocations: 0 / 282.3 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.262e-05/0.008792, allocations: 11.19 kB / 282.3 MB, free: 8.141 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-06/0.008794, allocations: 0 / 282.3 MB, free: 8.141 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.008798, allocations: 3.938 kB / 282.3 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.0088, allocations: 0 / 282.3 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.335e-05/0.008873, allocations: 116.6 kB / 282.5 MB, free: 7.988 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.008874, allocations: 3.938 kB / 282.5 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.176e-06/0.008877, allocations: 4 kB / 282.5 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.71e-07/0.008878, allocations: 0 / 282.5 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.008883, allocations: 0 / 282.5 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-07/0.008884, allocations: 0 / 282.5 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.008884, allocations: 0 / 282.5 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.999e-05/0.008934, allocations: 76.38 kB / 282.5 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.248e-06/0.008939, allocations: 0 / 282.5 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.708e-06/0.008948, allocations: 8 kB / 282.5 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.601e-06/0.008954, allocations: 0 / 282.5 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.177e-05/0.008966, allocations: 4.125 kB / 282.5 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-06/0.008967, allocations: 0 / 282.5 MB, free: 7.871 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.443e-05/0.009001, allocations: 131.2 kB / 282.7 MB, free: 7.742 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009001, allocations: 0 / 282.7 MB, free: 7.742 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002758/0.009277, allocations: 155.5 kB / 282.8 MB, free: 7.59 MB / 266.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 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0007646/0.01004, allocations: 0.55 MB / 283.4 MB, free: 7.094 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.054e-05/0.0101, allocations: 15.67 kB / 283.4 MB, free: 7.074 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.0101, allocations: 0 / 283.4 MB, free: 7.074 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.763e-06/0.01011, allocations: 11.75 kB / 283.4 MB, free: 7.059 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.921e-05/0.01021, allocations: 4 kB / 283.4 MB, free: 7.055 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003649/0.01057, allocations: 118.3 kB / 283.5 MB, free: 6.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.679e-05/0.0106, allocations: 51.36 kB / 283.6 MB, free: 6.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.574e-05/0.01063, allocations: 11.98 kB / 283.6 MB, free: 6.828 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.755e-05/0.01065, allocations: 12.5 kB / 283.6 MB, free: 6.816 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01065, allocations: 4.062 kB / 283.6 MB, free: 6.812 MB / 266.7 MB Notification: Performance of Templates: time 0.004256/0.0149, allocations: 3.215 MB / 286.8 MB, free: 3.598 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.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.8751611730549484]