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.001263/0.001263, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001327, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.3 MB, free: 9.145 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 58.56 kB / 306.2 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09682/0.09794, allocations: 50.54 MB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002179/0.1001, allocations: 1.263 MB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003095/0.1033, allocations: 2.115 MB / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.905e-05/0.1033, allocations: 0 / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.163e-05/0.1034, allocations: 0 / 360.2 MB, free: 10.91 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.0009811/0.1043, allocations: 355.1 kB / 360.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.175e-05/0.1044, allocations: 7.984 kB / 360.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 3.852e-05/0.1044, allocations: 8 kB / 360.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.546e-05/0.1045, allocations: 4 kB / 360.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.496e-05/0.1045, allocations: 15.92 kB / 360.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.1046, allocations: 7.938 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.916e-06/0.1046, allocations: 0 / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000616/0.1052, allocations: 467.5 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.262e-05/0.1053, allocations: 3.984 kB / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.037e-05/0.1053, allocations: 0 / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00051/0.1058, allocations: 387.3 kB / 361.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1058, allocations: 0 / 361.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1058, allocations: 3.938 kB / 361.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1058, allocations: 0 / 361.4 MB, free: 9.68 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.0004726/0.1063, allocations: 427.6 kB / 361.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.1064, allocations: 8.031 kB / 361.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.58e-05/0.1064, allocations: 80.22 kB / 361.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.1066, allocations: 239.7 kB / 362.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.816e-05/0.1067, allocations: 158.9 kB / 362.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.88e-05/0.1067, allocations: 154.7 kB / 362.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.174e-05/0.1068, allocations: 105 kB / 362.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.682e-05/0.1068, allocations: 83.22 kB / 362.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.811e-05/0.1069, allocations: 154.5 kB / 362.8 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.868e-05/0.107, allocations: 150.6 kB / 362.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.152e-05/0.107, allocations: 150.6 kB / 363.1 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002928/0.1073, allocations: 453.9 kB / 363.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.432e-05/0.1074, allocations: 165.1 kB / 363.7 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.495e-05/0.1075, allocations: 88.02 kB / 363.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.1075, allocations: 79.28 kB / 363.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001138/0.1076, allocations: 47.41 kB / 363.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.053e-06/0.1076, allocations: 0 / 363.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001274/0.1078, allocations: 37.61 kB / 363.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.1078, allocations: 55.34 kB / 364 MB, free: 6.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.584e-05/0.1079, allocations: 109.8 kB / 364.1 MB, free: 6.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.889e-06/0.1079, allocations: 25.7 kB / 364.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.814e-05/0.1079, allocations: 80.14 kB / 364.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.189e-05/0.108, allocations: 0 / 364.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.549e-05/0.108, allocations: 17.84 kB / 364.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.34e-05/0.1081, allocations: 314.8 kB / 364.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.284e-06/0.1081, allocations: 0 / 364.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.559e-06/0.1081, allocations: 0 / 364.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.098e-05/0.1081, allocations: 12.84 kB / 364.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1081, allocations: 0 / 364.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.12e-05/0.1082, allocations: 37.58 kB / 364.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.1082, allocations: 8.094 kB / 364.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.1082, allocations: 4 kB / 364.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.487e-06/0.1082, allocations: 0 / 364.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.756e-05/0.1083, allocations: 0 / 364.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.1083, allocations: 0 / 364.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.46e-05/0.1083, allocations: 0 / 364.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-06/0.1083, allocations: 0 / 364.6 MB, free: 6.266 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.33e-05/0.1084, allocations: 121.7 kB / 364.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.044e-05/0.1084, allocations: 3.984 kB / 364.7 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.369e-05/0.1084, allocations: 7.078 kB / 364.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.1084, allocations: 11.94 kB / 364.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.1084, allocations: 0 / 364.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1084, allocations: 0 / 364.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001063/0.1086, allocations: 153.6 kB / 364.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1086, allocations: 0 / 364.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.347e-06/0.1086, allocations: 4 kB / 364.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.1086, allocations: 0 / 364.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.309e-06/0.1086, allocations: 0 / 364.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1086, allocations: 0 / 364.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1086, allocations: 0 / 364.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.122e-05/0.1087, allocations: 73 kB / 364.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.1087, allocations: 81.02 kB / 365 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.1087, allocations: 4 kB / 365 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.159e-05/0.1088, allocations: 0 / 365 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.575e-05/0.1088, allocations: 0 / 365 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.1088, allocations: 7.938 kB / 365 MB, free: 5.707 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.835e-05/0.1088, allocations: 87.27 kB / 365.1 MB, free: 5.621 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1088, allocations: 0 / 365.1 MB, free: 5.621 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003869/0.1092, allocations: 144 kB / 365.3 MB, free: 5.48 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.0009721/0.1102, allocations: 0.4967 MB / 365.7 MB, free: 5.035 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.437e-05/0.1103, allocations: 4 kB / 365.8 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1103, allocations: 0 / 365.8 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.013e-06/0.1103, allocations: 3.938 kB / 365.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.1104, allocations: 7.938 kB / 365.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002237/0.1107, allocations: 104.4 kB / 365.9 MB, free: 4.891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.1109, allocations: 0.6772 MB / 366.5 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.968e-05/0.1109, allocations: 7.984 kB / 366.6 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.014e-05/0.1109, allocations: 15.42 kB / 366.6 MB, free: 4.164 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1109, allocations: 0 / 366.6 MB, free: 4.164 MB / 302.1 MB Notification: Performance of Templates: time 0.00587/0.1168, allocations: 3.127 MB / 369.7 MB, free: 1.039 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","/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