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.001422/0.001422, allocations: 105.5 kB / 17.59 MB, free: 5.445 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.001444/0.001444, allocations: 187.6 kB / 18.51 MB, free: 4.527 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.391/1.391, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001096, allocations: 50.7 kB / 301.3 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09376/0.09488, allocations: 49.44 MB / 350.7 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002572/0.09748, allocations: 1.182 MB / 351.9 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003248/0.1008, allocations: 1.963 MB / 353.9 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.588e-05/0.1008, allocations: 0 / 353.9 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.905e-05/0.1008, allocations: 0 / 353.9 MB, free: 1.285 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.00144/0.1023, allocations: 441 kB / 354.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.518e-05/0.1023, allocations: 0 / 354.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.855e-05/0.1024, allocations: 7.938 kB / 354.3 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.648e-05/0.1025, allocations: 4 kB / 354.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.267e-05/0.1025, allocations: 3.938 kB / 354.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003256/0.1028, allocations: 15.92 kB / 354.3 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.859e-06/0.1028, allocations: 4 kB / 354.3 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008238/0.1037, allocations: 427.5 kB / 354.7 MB, free: 412 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.5e-05/0.1037, allocations: 4 kB / 354.7 MB, free: 408 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.613e-05/0.1037, allocations: 7.938 kB / 354.8 MB, free: 400 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006582/0.1044, allocations: 335.5 kB / 355.1 MB, free: 64 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1044, allocations: 0 / 355.1 MB, free: 64 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1044, allocations: 0 / 355.1 MB, free: 64 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1044, allocations: 0 / 355.1 MB, free: 64 kB / 286.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.0005302/0.105, allocations: 403.8 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.105, allocations: 11.97 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.019e-05/0.1051, allocations: 88.22 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.1053, allocations: 243.5 kB / 355.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.467e-05/0.1053, allocations: 150.9 kB / 356 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.875e-05/0.1054, allocations: 158.7 kB / 356.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.05e-05/0.1055, allocations: 101 kB / 356.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.034e-05/0.1055, allocations: 75.28 kB / 356.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.072e-05/0.1056, allocations: 154.6 kB / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.694e-05/0.1056, allocations: 150.6 kB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.487e-05/0.1057, allocations: 162.4 kB / 356.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003101/0.106, allocations: 445.9 kB / 357.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.362e-05/0.1061, allocations: 173.1 kB / 357.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.712e-05/0.1062, allocations: 84.08 kB / 357.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.1062, allocations: 75.28 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001746/0.1064, allocations: 47.34 kB / 357.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.435e-06/0.1064, allocations: 0 / 357.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001382/0.1066, allocations: 45.61 kB / 357.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.1066, allocations: 55.39 kB / 357.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.884e-05/0.1067, allocations: 97.8 kB / 357.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.1067, allocations: 25.7 kB / 357.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.215e-05/0.1067, allocations: 88.14 kB / 357.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.223e-05/0.1068, allocations: 0 / 357.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.594e-05/0.1068, allocations: 9.719 kB / 357.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.1069, allocations: 319 kB / 358.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.007e-05/0.1069, allocations: 7.938 kB / 358.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.18e-06/0.1069, allocations: 0 / 358.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.409e-05/0.107, allocations: 12.86 kB / 358.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.107, allocations: 0 / 358.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.809e-05/0.107, allocations: 33.64 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.1071, allocations: 4 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1071, allocations: 0 / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.1071, allocations: 4 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.247e-05/0.1071, allocations: 8.078 kB / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.1071, allocations: 0 / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.827e-05/0.1071, allocations: 0 / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.1072, allocations: 0 / 358.2 MB, free: 12.66 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.102e-05/0.1072, allocations: 113.7 kB / 358.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.1072, allocations: 4 kB / 358.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.688e-05/0.1073, allocations: 7.125 kB / 358.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1073, allocations: 0 / 358.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1073, allocations: 192 / 358.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1073, allocations: 4 kB / 358.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.1074, allocations: 157.6 kB / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1074, allocations: 0 / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.988e-06/0.1074, allocations: 0 / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.1074, allocations: 0 / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.1075, allocations: 8 kB / 358.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.1075, allocations: 3.984 kB / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1075, allocations: 0 / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.474e-05/0.1076, allocations: 61.08 kB / 358.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.222e-05/0.1076, allocations: 77.11 kB / 358.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.1076, allocations: 7.938 kB / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.226e-05/0.1076, allocations: 0 / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.479e-05/0.1077, allocations: 7.922 kB / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.1077, allocations: 3.938 kB / 358.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.995e-05/0.1077, allocations: 83.28 kB / 358.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1077, allocations: 0 / 358.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004518/0.1082, allocations: 124 kB / 358.9 MB, free: 11.91 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.001037/0.1092, allocations: 487.4 kB / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.783e-05/0.1093, allocations: 12 kB / 359.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1093, allocations: 0 / 359.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.802e-06/0.1093, allocations: 0 / 359.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.1095, allocations: 10.52 kB / 359.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002837/0.1098, allocations: 144.2 kB / 359.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.11, allocations: 0.6768 MB / 360.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.388e-05/0.11, allocations: 15.38 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1101, allocations: 4.125 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Templates: time 0.005876/0.1159, allocations: 3.08 MB / 363.3 MB, free: 7.508 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/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