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.001245/0.001245, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 67.77 kB / 307 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09446/0.09628, allocations: 50.54 MB / 357.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002234/0.09855, allocations: 1.194 MB / 358.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003067/0.1016, allocations: 2.068 MB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.661e-05/0.1017, allocations: 3.938 kB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.328e-05/0.1017, allocations: 0 / 360.8 MB, free: 10.75 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.001153/0.1029, allocations: 470.4 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.399e-05/0.1029, allocations: 8 kB / 361.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.786e-05/0.103, allocations: 7.938 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.073e-05/0.103, allocations: 8 kB / 361.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.269e-05/0.103, allocations: 7.984 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.1031, allocations: 19.92 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.367e-06/0.1032, allocations: 0 / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007089/0.1039, allocations: 467.5 kB / 361.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.392e-05/0.1039, allocations: 7.922 kB / 361.8 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.243e-05/0.1039, allocations: 4 kB / 361.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005278/0.1045, allocations: 375.4 kB / 362.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1045, allocations: 0 / 362.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1045, allocations: 0 / 362.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1045, allocations: 0 / 362.1 MB, free: 9.398 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.0004606/0.105, allocations: 427.6 kB / 362.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.105, allocations: 12.03 kB / 362.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.988e-05/0.1051, allocations: 76.22 kB / 362.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.1052, allocations: 243.7 kB / 362.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.125e-05/0.1053, allocations: 150.9 kB / 363 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.156e-05/0.1054, allocations: 158.6 kB / 363.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.216e-05/0.1055, allocations: 105 kB / 363.3 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.667e-05/0.1055, allocations: 79.28 kB / 363.4 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.377e-05/0.1056, allocations: 150.6 kB / 363.5 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.119e-05/0.1056, allocations: 150.6 kB / 363.6 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.931e-05/0.1057, allocations: 154.6 kB / 363.8 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003021/0.106, allocations: 449.9 kB / 364.2 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.447e-05/0.1061, allocations: 169.1 kB / 364.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.937e-05/0.1062, allocations: 88.08 kB / 364.5 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.954e-05/0.1062, allocations: 75.28 kB / 364.6 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.1064, allocations: 51.41 kB / 364.6 MB, free: 6.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.174e-06/0.1064, allocations: 0 / 364.6 MB, free: 6.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001462/0.1065, allocations: 41.55 kB / 364.7 MB, free: 6.691 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.1066, allocations: 51.41 kB / 364.7 MB, free: 6.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.1067, allocations: 105.8 kB / 364.8 MB, free: 6.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.1067, allocations: 25.7 kB / 364.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.552e-05/0.1068, allocations: 84.08 kB / 364.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.155e-05/0.1068, allocations: 0 / 364.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.913e-05/0.1068, allocations: 17.84 kB / 364.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1069, allocations: 314.8 kB / 365.2 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.246e-06/0.107, allocations: 0 / 365.2 MB, free: 6.059 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.014e-06/0.107, allocations: 4 kB / 365.2 MB, free: 6.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.485e-05/0.107, allocations: 16.72 kB / 365.3 MB, free: 6.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.107, allocations: 0 / 365.3 MB, free: 6.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.591e-05/0.1071, allocations: 37.64 kB / 365.3 MB, free: 5.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.1071, allocations: 6.969 kB / 365.3 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1071, allocations: 4.094 kB / 365.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.1071, allocations: 0 / 365.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.831e-05/0.1071, allocations: 0 / 365.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.1072, allocations: 0 / 365.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.527e-05/0.1072, allocations: 0 / 365.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.1072, allocations: 4 kB / 365.3 MB, free: 5.98 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.187e-05/0.1073, allocations: 117.8 kB / 365.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.278e-06/0.1073, allocations: 0 / 365.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.549e-05/0.1073, allocations: 11.08 kB / 365.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1073, allocations: 4 kB / 365.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1073, allocations: 0 / 365.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.1073, allocations: 0 / 365.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.1075, allocations: 153.6 kB / 365.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1075, allocations: 192 / 365.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.206e-06/0.1075, allocations: 0 / 365.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.1075, allocations: 0 / 365.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.1075, allocations: 7.922 kB / 365.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1075, allocations: 0 / 365.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1075, allocations: 0 / 365.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.824e-05/0.1076, allocations: 69.06 kB / 365.7 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.601e-05/0.1077, allocations: 81.02 kB / 365.7 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.1077, allocations: 0 / 365.7 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.161e-05/0.1077, allocations: 0 / 365.7 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.365e-05/0.1077, allocations: 4 kB / 365.8 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-06/0.1077, allocations: 0 / 365.8 MB, free: 5.441 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.224e-05/0.1078, allocations: 87.27 kB / 365.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1078, allocations: 3.938 kB / 365.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004126/0.1082, allocations: 148 kB / 366 MB, free: 5.207 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 (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.001134/0.1094, allocations: 0.4951 MB / 366.5 MB, free: 4.762 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.312e-05/0.1094, allocations: 7.938 kB / 366.5 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1094, allocations: 0 / 366.5 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.135e-06/0.1095, allocations: 4 kB / 366.5 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.1096, allocations: 3.938 kB / 366.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002545/0.1099, allocations: 102.6 kB / 366.6 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.1102, allocations: 0.6769 MB / 367.3 MB, free: 3.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.022e-05/0.1102, allocations: 11.94 kB / 367.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.119e-05/0.1102, allocations: 15.42 kB / 367.3 MB, free: 3.891 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1102, allocations: 0 / 367.3 MB, free: 3.891 MB / 302.1 MB Notification: Performance of Templates: time 0.006815/0.1171, allocations: 3.126 MB / 370.4 MB, free: 0.7656 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.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches