Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 114.8 kB / 17.69 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001893/0.001893, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 41.39 kB / 302 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1022, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002287/0.1045, allocations: 1.189 MB / 352.7 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002956/0.1075, allocations: 1.948 MB / 354.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.284e-05/0.1076, allocations: 0 / 354.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.609e-05/0.1076, allocations: 3.938 kB / 354.6 MB, free: 0.5352 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372: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.001356/0.109, allocations: 438.6 kB / 355.1 MB, free: 108 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.858e-05/0.109, allocations: 7.984 kB / 355.1 MB, free: 100 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.019e-05/0.1091, allocations: 15.86 kB / 355.1 MB, free: 84 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.367e-05/0.1091, allocations: 4 kB / 355.1 MB, free: 80 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.85e-05/0.1092, allocations: 0 / 355.1 MB, free: 80 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.1093, allocations: 8 kB / 355.1 MB, free: 72 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.037e-05/0.1093, allocations: 0 / 355.1 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007966/0.1101, allocations: 475.5 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.939e-05/0.1101, allocations: 8 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.319e-05/0.1102, allocations: 7.875 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000612/0.1108, allocations: 339.5 kB / 355.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1108, allocations: 0 / 355.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1108, allocations: 0 / 355.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.1108, allocations: 0 / 355.9 MB, free: 15.26 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.0005086/0.1113, allocations: 407.4 kB / 356.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.1114, allocations: 8.031 kB / 356.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.39e-05/0.1115, allocations: 80.22 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002067/0.1117, allocations: 239.6 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.94e-05/0.1118, allocations: 154.9 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/0.1118, allocations: 154.7 kB / 356.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.27e-05/0.1119, allocations: 108.9 kB / 357 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.112, allocations: 83.2 kB / 357.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.271e-05/0.112, allocations: 154.6 kB / 357.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.771e-05/0.1121, allocations: 150.6 kB / 357.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.257e-05/0.1121, allocations: 154.6 kB / 357.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003139/0.1125, allocations: 450 kB / 358 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.363e-05/0.1126, allocations: 169.1 kB / 358.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.554e-05/0.1126, allocations: 84.08 kB / 358.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.1126, allocations: 83.27 kB / 358.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001541/0.1128, allocations: 39.42 kB / 358.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 1.994e-06/0.1128, allocations: 0 / 358.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001436/0.113, allocations: 49.53 kB / 358.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.113, allocations: 51.41 kB / 358.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.769e-05/0.1131, allocations: 93.98 kB / 358.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.1131, allocations: 33.7 kB / 358.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.905e-05/0.1132, allocations: 84.14 kB / 358.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.548e-05/0.1132, allocations: 3.984 kB / 358.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-05/0.1132, allocations: 9.719 kB / 358.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1133, allocations: 314.8 kB / 359 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.322e-05/0.1134, allocations: 4 kB / 359 MB, free: 11.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.14e-06/0.1134, allocations: 0 / 359 MB, free: 11.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.909e-05/0.1134, allocations: 12.92 kB / 359 MB, free: 11.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1134, allocations: 0 / 359 MB, free: 11.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.245e-05/0.1135, allocations: 41.56 kB / 359.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.1135, allocations: 4 kB / 359.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.1135, allocations: 0 / 359.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.1135, allocations: 4 kB / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.506e-05/0.1136, allocations: 0 / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.1136, allocations: 0 / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.691e-05/0.1136, allocations: 0 / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.1136, allocations: 0 / 359.1 MB, free: 11.86 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 7.673e-05/0.1137, allocations: 121.8 kB / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.195e-05/0.1137, allocations: 4.188 kB / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.745e-05/0.1137, allocations: 7.109 kB / 359.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1137, allocations: 3.984 kB / 359.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1138, allocations: 0 / 359.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.1138, allocations: 0 / 359.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001249/0.1139, allocations: 153.6 kB / 359.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1139, allocations: 0 / 359.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.552e-06/0.1139, allocations: 7.922 kB / 359.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1139, allocations: 4 kB / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-06/0.114, allocations: 4 kB / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.114, allocations: 0 / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.114, allocations: 3.938 kB / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001186/0.1141, allocations: 57.08 kB / 359.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.24e-05/0.1141, allocations: 81.11 kB / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.1142, allocations: 3.984 kB / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.221e-05/0.1142, allocations: 0 / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.014e-05/0.1142, allocations: 4.031 kB / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.1142, allocations: 4 kB / 359.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.684e-05/0.1143, allocations: 83.28 kB / 359.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1143, allocations: 0 / 359.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004503/0.1147, allocations: 128 kB / 359.7 MB, free: 11.11 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.00107/0.1158, allocations: 480.5 kB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.053e-05/0.1159, allocations: 7.938 kB / 360.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1159, allocations: 3.938 kB / 360.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.061e-06/0.1159, allocations: 0 / 360.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001468/0.116, allocations: 15.58 kB / 360.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002465/0.1163, allocations: 110.7 kB / 360.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001998/0.1165, allocations: 0.6768 MB / 361 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.907e-05/0.1166, allocations: 7.984 kB / 361 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.208e-05/0.1166, allocations: 15.38 kB / 361 MB, free: 9.816 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1166, allocations: 3.938 kB / 361 MB, free: 9.812 MB / 302.1 MB Notification: Performance of Templates: time 0.006339/0.1229, allocations: 2.772 MB / 363.8 MB, free: 7.043 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches