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.001031/0.001031, allocations: 95.67 kB / 16.65 MB, free: 6.59 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.001368/0.001368, allocations: 181.9 kB / 17.56 MB, free: 6.203 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.326/1.326, allocations: 223.3 MB / 241.6 MB, free: 14.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002833/0.0002833, allocations: 11.94 kB / 301.4 MB, free: 5.93 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09502/0.09532, allocations: 50.42 MB / 351.8 MB, free: 3.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001306/0.09668, allocations: 0.9233 MB / 352.8 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003103/0.0998, allocations: 1.951 MB / 354.7 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.279e-05/0.09986, allocations: 4 kB / 354.7 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.977e-05/0.09989, allocations: 0 / 354.7 MB, free: 0.6016 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.001162/0.1011, allocations: 331.2 kB / 355 MB, free: 284 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.73e-05/0.1011, allocations: 8 kB / 355 MB, free: 276 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.391e-05/0.1011, allocations: 7.938 kB / 355 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.514e-05/0.1012, allocations: 4 kB / 355 MB, free: 264 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.238e-05/0.1012, allocations: 3.938 kB / 355.1 MB, free: 260 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.1014, allocations: 7.984 kB / 355.1 MB, free: 252 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.08e-05/0.1014, allocations: 0 / 355.1 MB, free: 252 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008172/0.1022, allocations: 427.6 kB / 355.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.24e-05/0.1022, allocations: 7.984 kB / 355.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.749e-05/0.1023, allocations: 33.64 kB / 355.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006185/0.1029, allocations: 327.4 kB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.1029, allocations: 8 kB / 355.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.1029, allocations: 0 / 355.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.1029, allocations: 0 / 355.8 MB, free: 15.45 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.000434/0.1034, allocations: 399.4 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1034, allocations: 8.031 kB / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.368e-05/0.1035, allocations: 80.22 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001564/0.1036, allocations: 247.9 kB / 356.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.175e-05/0.1037, allocations: 150.9 kB / 356.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.247e-05/0.1038, allocations: 158.7 kB / 356.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.541e-05/0.1038, allocations: 104.9 kB / 357 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.1039, allocations: 75.28 kB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.1039, allocations: 150.6 kB / 357.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.146e-05/0.104, allocations: 154.6 kB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.953e-05/0.104, allocations: 150.6 kB / 357.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002663/0.1043, allocations: 449.9 kB / 357.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.906e-05/0.1044, allocations: 173.1 kB / 358.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.503e-05/0.1044, allocations: 92.06 kB / 358.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.1045, allocations: 75.28 kB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000136/0.1046, allocations: 51.39 kB / 358.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.244e-06/0.1046, allocations: 0 / 358.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001201/0.1047, allocations: 41.58 kB / 358.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.1048, allocations: 55.53 kB / 358.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.241e-05/0.1049, allocations: 101.8 kB / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.1049, allocations: 33.64 kB / 358.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.049e-05/0.1049, allocations: 80.14 kB / 358.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.347e-05/0.105, allocations: 3.906 kB / 358.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.378e-05/0.105, allocations: 13.72 kB / 358.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1051, allocations: 310.8 kB / 358.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.415e-06/0.1051, allocations: 0 / 358.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.891e-06/0.1051, allocations: 4 kB / 358.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.251e-05/0.1052, allocations: 8.922 kB / 358.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1052, allocations: 0 / 358.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.052e-05/0.1052, allocations: 45.56 kB / 359 MB, free: 12.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.1053, allocations: 4 kB / 359 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.1053, allocations: 0 / 359 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.1053, allocations: 0 / 359 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.984e-05/0.1053, allocations: 0 / 359 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1053, allocations: 4 kB / 359 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.815e-05/0.1053, allocations: 4 kB / 359 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-06/0.1054, allocations: 4.031 kB / 359 MB, free: 12.05 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.256e-05/0.1054, allocations: 109.8 kB / 359.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.17e-05/0.1054, allocations: 4 kB / 359.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.044e-05/0.1055, allocations: 7.109 kB / 359.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.1055, allocations: 0 / 359.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1055, allocations: 0 / 359.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.1055, allocations: 0 / 359.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001469/0.1057, allocations: 157.6 kB / 359.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1057, allocations: 0 / 359.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.218e-06/0.1057, allocations: 4 kB / 359.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.1057, allocations: 0 / 359.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-06/0.1057, allocations: 0 / 359.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1057, allocations: 0 / 359.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1057, allocations: 0 / 359.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.231e-05/0.1058, allocations: 65 kB / 359.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.881e-05/0.1058, allocations: 81.11 kB / 359.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.1059, allocations: 8 kB / 359.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.205e-05/0.1059, allocations: 4.031 kB / 359.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.386e-05/0.1059, allocations: 0 / 359.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-06/0.1059, allocations: 0 / 359.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.914e-05/0.106, allocations: 87.2 kB / 359.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.106, allocations: 0 / 359.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000452/0.1064, allocations: 132 kB / 359.7 MB, free: 11.3 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.001002/0.1074, allocations: 487.1 kB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.652e-05/0.1075, allocations: 0 / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.1075, allocations: 3.938 kB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.761e-06/0.1075, allocations: 4 kB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001429/0.1077, allocations: 8.062 kB / 360.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000225/0.1079, allocations: 120.5 kB / 360.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.1081, allocations: 0.677 MB / 360.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.588e-05/0.1082, allocations: 4 kB / 360.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.654e-05/0.1082, allocations: 15.42 kB / 361 MB, free: 10.01 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1082, allocations: 0 / 361 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Templates: time 0.006004/0.1142, allocations: 2.75 MB / 363.7 MB, free: 7.254 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins/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