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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009546/0.0009544, allocations: 96.14 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009636/0.0009636, allocations: 204 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002241/0.0002241, allocations: 4 kB / 306.6 MB, free: 1.426 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09951/0.09975, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001139/0.1009, allocations: 0.9198 MB / 359 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002515/0.1035, allocations: 1.921 MB / 360.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.804e-05/0.1035, allocations: 0 / 360.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.556e-05/0.1035, allocations: 0 / 360.9 MB, free: 11.07 MB / 302.1 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.0009256/0.1045, allocations: 343 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.305e-05/0.1045, allocations: 3.984 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 3.751e-05/0.1045, allocations: 12 kB / 361.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.432e-05/0.1046, allocations: 0 / 361.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.928e-05/0.1046, allocations: 15.97 kB / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.414e-05/0.1047, allocations: 4 kB / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.524e-06/0.1047, allocations: 0 / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005572/0.1053, allocations: 387.5 kB / 361.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.25e-05/0.1053, allocations: 7.984 kB / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.648e-05/0.1053, allocations: 29.69 kB / 361.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003373/0.1057, allocations: 243.6 kB / 361.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.1057, allocations: 0 / 361.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1057, allocations: 4 kB / 361.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.905e-06/0.1057, allocations: 0 / 361.9 MB, free: 10.04 MB / 302.1 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.0003848/0.1061, allocations: 423.5 kB / 362.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.1061, allocations: 8.031 kB / 362.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.572e-05/0.1062, allocations: 75.28 kB / 362.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.1063, allocations: 250.2 kB / 362.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.463e-05/0.1064, allocations: 150.6 kB / 362.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.1064, allocations: 154.6 kB / 363 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.253e-05/0.1065, allocations: 112.9 kB / 363.1 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/0.1065, allocations: 75.28 kB / 363.1 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.345e-05/0.1065, allocations: 150.6 kB / 363.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.322e-05/0.1066, allocations: 150.6 kB / 363.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.64e-05/0.1066, allocations: 150.6 kB / 363.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002365/0.1069, allocations: 457.9 kB / 364 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.728e-05/0.107, allocations: 165.1 kB / 364.2 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.107, allocations: 75.28 kB / 364.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001071/0.1071, allocations: 47.36 kB / 364.3 MB, free: 7.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 3.436e-06/0.1071, allocations: 4 kB / 364.3 MB, free: 7.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001088/0.1072, allocations: 41.58 kB / 364.4 MB, free: 7.418 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.1073, allocations: 55.41 kB / 364.4 MB, free: 7.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.762e-05/0.1073, allocations: 101.8 kB / 364.5 MB, free: 7.242 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.1074, allocations: 25.7 kB / 364.5 MB, free: 7.211 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.014e-05/0.1074, allocations: 84.14 kB / 364.6 MB, free: 7.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.078e-05/0.1074, allocations: 0 / 364.6 MB, free: 7.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.653e-06/0.1074, allocations: 0 / 364.6 MB, free: 7.125 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.658e-05/0.1075, allocations: 311 kB / 364.9 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.235e-06/0.1075, allocations: 8 kB / 364.9 MB, free: 6.805 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.097e-06/0.1075, allocations: 0 / 364.9 MB, free: 6.805 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.23e-05/0.1075, allocations: 4 kB / 364.9 MB, free: 6.801 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1076, allocations: 0 / 364.9 MB, free: 6.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5e-05/0.1076, allocations: 41.53 kB / 365 MB, free: 6.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.1076, allocations: 4 kB / 365 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1076, allocations: 7.953 kB / 365 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.1077, allocations: 0 / 365 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.719e-05/0.1077, allocations: 96 / 365 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.1077, allocations: 4 kB / 365 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.512e-05/0.1077, allocations: 0 / 365 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.1077, allocations: 0 / 365 MB, free: 6.738 MB / 302.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.91e-05/0.1078, allocations: 109.8 kB / 365.1 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.007e-06/0.1078, allocations: 3.984 kB / 365.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.685e-05/0.1078, allocations: 11.08 kB / 365.1 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.1078, allocations: 7.891 kB / 365.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1078, allocations: 0 / 365.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-06/0.1079, allocations: 4 kB / 365.1 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.108, allocations: 153.7 kB / 365.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.108, allocations: 0 / 365.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.046e-06/0.108, allocations: 0 / 365.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.108, allocations: 4 kB / 365.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.478e-06/0.108, allocations: 0 / 365.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.108, allocations: 0 / 365.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.108, allocations: 11.89 kB / 365.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.849e-05/0.1081, allocations: 61.31 kB / 365.3 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.605e-05/0.1081, allocations: 85.09 kB / 365.4 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.1081, allocations: 0 / 365.4 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.105e-05/0.1081, allocations: 0 / 365.4 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.428e-06/0.1082, allocations: 3.953 kB / 365.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-06/0.1082, allocations: 0 / 365.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.352e-05/0.1082, allocations: 87.27 kB / 365.5 MB, free: 6.105 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1082, allocations: 4 kB / 365.5 MB, free: 6.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000384/0.1086, allocations: 140 kB / 365.7 MB, free: 5.965 MB / 302.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000891/0.1095, allocations: 0.5023 MB / 366.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.357e-05/0.1096, allocations: 7.938 kB / 366.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1096, allocations: 8.062 kB / 366.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.98e-06/0.1096, allocations: 0 / 366.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.643e-05/0.1097, allocations: 0 / 366.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002291/0.1099, allocations: 108.6 kB / 366.3 MB, free: 5.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002167/0.1101, allocations: 0.677 MB / 367 MB, free: 4.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.967e-05/0.1102, allocations: 12.05 kB / 367 MB, free: 4.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.941e-05/0.1102, allocations: 11.44 kB / 367 MB, free: 4.645 MB / 302.1 MB Notification: Performance of SimCode: time 1.343e-06/0.1102, allocations: 0 / 367 MB, free: 4.645 MB / 302.1 MB Notification: Performance of Templates: time 0.005785/0.116, allocations: 3.093 MB / 370.1 MB, free: 1.547 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches