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.001014/0.001015, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001082/0.001082, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 61.31 kB / 308.3 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09652/0.09772, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002179/0.09993, allocations: 1.198 MB / 360.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002809/0.1028, allocations: 2.08 MB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.137e-05/0.1028, allocations: 0 / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.727e-05/0.1028, allocations: 0 / 362.2 MB, free: 10.07 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.001143/0.104, allocations: 461.6 kB / 362.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.567e-05/0.104, allocations: 7.969 kB / 362.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.444e-05/0.1041, allocations: 8 kB / 362.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.989e-05/0.1041, allocations: 3.938 kB / 362.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.119e-05/0.1041, allocations: 4 kB / 362.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.1043, allocations: 19.91 kB / 362.7 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.548e-06/0.1043, allocations: 0 / 362.7 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007014/0.105, allocations: 0.5151 MB / 363.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.088e-05/0.105, allocations: 0 / 363.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 1.963e-05/0.105, allocations: 0 / 363.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005086/0.1056, allocations: 383.3 kB / 363.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1056, allocations: 0 / 363.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1056, allocations: 0 / 363.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.718e-06/0.1056, allocations: 0 / 363.5 MB, free: 8.684 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.0004356/0.106, allocations: 423.3 kB / 364 MB, free: 8.223 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.1061, allocations: 8.031 kB / 364 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.788e-05/0.1061, allocations: 84.22 kB / 364 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.1063, allocations: 243.7 kB / 364.3 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.712e-05/0.1064, allocations: 150.9 kB / 364.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.761e-05/0.1064, allocations: 162.7 kB / 364.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.335e-05/0.1065, allocations: 104.9 kB / 364.7 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.349e-05/0.1065, allocations: 75.28 kB / 364.8 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.649e-05/0.1066, allocations: 158.5 kB / 364.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.282e-05/0.1066, allocations: 150.6 kB / 365.1 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.724e-05/0.1067, allocations: 150.6 kB / 365.2 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002801/0.107, allocations: 453.9 kB / 365.7 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.325e-05/0.1071, allocations: 169.1 kB / 365.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.274e-05/0.1071, allocations: 84.08 kB / 365.9 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.1072, allocations: 79.22 kB / 366 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000151/0.1073, allocations: 47.41 kB / 366 MB, free: 6.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.554e-06/0.1073, allocations: 0 / 366 MB, free: 6.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001297/0.1075, allocations: 41.61 kB / 366.1 MB, free: 5.973 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.1075, allocations: 55.34 kB / 366.1 MB, free: 5.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.634e-05/0.1076, allocations: 113.8 kB / 366.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.1076, allocations: 25.7 kB / 366.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.059e-05/0.1077, allocations: 80.14 kB / 366.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.464e-05/0.1077, allocations: 3.984 kB / 366.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-05/0.1077, allocations: 13.72 kB / 366.4 MB, free: 5.648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1078, allocations: 318.8 kB / 366.7 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.846e-06/0.1079, allocations: 4.125 kB / 366.7 MB, free: 5.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.07e-06/0.1079, allocations: 0 / 366.7 MB, free: 5.324 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.308e-05/0.1079, allocations: 8.859 kB / 366.7 MB, free: 5.312 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1079, allocations: 0 / 366.7 MB, free: 5.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.089e-05/0.108, allocations: 37.64 kB / 366.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.108, allocations: 8 kB / 366.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.108, allocations: 3.938 kB / 366.7 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.108, allocations: 0 / 366.7 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.556e-05/0.108, allocations: 0 / 366.7 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.1081, allocations: 8.078 kB / 366.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.692e-05/0.1081, allocations: 0 / 366.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-06/0.1081, allocations: 0 / 366.7 MB, free: 5.25 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.26e-05/0.1082, allocations: 117.7 kB / 366.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.816e-06/0.1082, allocations: 0 / 366.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.577e-05/0.1082, allocations: 7.078 kB / 366.9 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1082, allocations: 0 / 366.9 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.1082, allocations: 4 kB / 366.9 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1082, allocations: 0 / 366.9 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.1084, allocations: 157.6 kB / 367 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1084, allocations: 0 / 367 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.956e-06/0.1084, allocations: 0 / 367 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.1084, allocations: 4 kB / 367 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.1084, allocations: 0 / 367 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.1084, allocations: 3.938 kB / 367 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1084, allocations: 0 / 367 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.724e-05/0.1085, allocations: 69 kB / 367.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.428e-05/0.1085, allocations: 85.05 kB / 367.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.145e-05/0.1086, allocations: 0 / 367.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.708e-05/0.1086, allocations: 0 / 367.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.132e-05/0.1086, allocations: 7.922 kB / 367.2 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-06/0.1086, allocations: 0 / 367.2 MB, free: 4.703 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.777e-05/0.1086, allocations: 79.28 kB / 367.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1086, allocations: 4 kB / 367.3 MB, free: 4.621 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004121/0.1091, allocations: 144 kB / 367.4 MB, free: 4.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.0009334/0.11, allocations: 0.4889 MB / 367.9 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.265e-05/0.1101, allocations: 4 kB / 367.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1101, allocations: 4.062 kB / 367.9 MB, free: 4.039 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.893e-06/0.1101, allocations: 0 / 367.9 MB, free: 4.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001374/0.1102, allocations: 19.86 kB / 367.9 MB, free: 4.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002112/0.1105, allocations: 98.55 kB / 368 MB, free: 3.898 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.1107, allocations: 0.6768 MB / 368.7 MB, free: 3.195 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.093e-05/0.1107, allocations: 7.984 kB / 368.7 MB, free: 3.188 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.119e-05/0.1108, allocations: 19.5 kB / 368.7 MB, free: 3.168 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1108, allocations: 0 / 368.7 MB, free: 3.168 MB / 302.1 MB Notification: Performance of Templates: time 0.006342/0.1171, allocations: 3.135 MB / 371.9 MB, free: 36 kB / 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 -s gbode -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/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_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches