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.001045/0.001044, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00117/0.00117, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 63.59 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0931/0.09423, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002225/0.09652, allocations: 1.194 MB / 360.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002952/0.09949, allocations: 2.064 MB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.846e-05/0.09954, allocations: 7.938 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.609e-05/0.09958, allocations: 0 / 362.2 MB, free: 10.04 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.001162/0.1008, allocations: 469.9 kB / 362.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.206e-05/0.1008, allocations: 0 / 362.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.925e-05/0.1008, allocations: 15.88 kB / 362.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.907e-05/0.1009, allocations: 7.969 kB / 362.6 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.221e-05/0.1009, allocations: 4 kB / 362.6 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002651/0.1012, allocations: 11.94 kB / 362.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.568e-06/0.1012, allocations: 0 / 362.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006911/0.1019, allocations: 0.5073 MB / 363.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.641e-05/0.1019, allocations: 4 kB / 363.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.008e-05/0.102, allocations: 7.922 kB / 363.2 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004846/0.1025, allocations: 383.4 kB / 363.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1025, allocations: 0 / 363.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.1025, allocations: 0 / 363.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1025, allocations: 0 / 363.5 MB, free: 8.652 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.0004347/0.1029, allocations: 423.3 kB / 364 MB, free: 8.191 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.103, allocations: 8.031 kB / 364 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.743e-05/0.103, allocations: 76.22 kB / 364 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.1032, allocations: 251.6 kB / 364.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.843e-05/0.1033, allocations: 154.9 kB / 364.4 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.468e-05/0.1033, allocations: 158.7 kB / 364.6 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.491e-05/0.1034, allocations: 112.9 kB / 364.7 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.882e-05/0.1034, allocations: 75.28 kB / 364.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.353e-05/0.1035, allocations: 150.6 kB / 364.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.247e-05/0.1035, allocations: 150.6 kB / 365.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.432e-05/0.1036, allocations: 154.6 kB / 365.2 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002506/0.1038, allocations: 449.9 kB / 365.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.744e-05/0.1039, allocations: 169.1 kB / 365.8 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.179e-05/0.1039, allocations: 84.08 kB / 365.9 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.104, allocations: 79.28 kB / 366 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001365/0.1041, allocations: 47.41 kB / 366 MB, free: 5.988 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.204e-06/0.1041, allocations: 0 / 366 MB, free: 5.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001216/0.1042, allocations: 41.55 kB / 366.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/0.1043, allocations: 51.41 kB / 366.1 MB, free: 5.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.853e-05/0.1044, allocations: 102 kB / 366.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.1044, allocations: 29.7 kB / 366.3 MB, free: 5.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.635e-05/0.1044, allocations: 88.08 kB / 366.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.1044, allocations: 0 / 366.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.502e-05/0.1045, allocations: 13.72 kB / 366.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.038e-05/0.1046, allocations: 310.8 kB / 366.7 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.455e-06/0.1046, allocations: 4 kB / 366.7 MB, free: 5.309 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.539e-06/0.1046, allocations: 0 / 366.7 MB, free: 5.309 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.494e-05/0.1046, allocations: 16.91 kB / 366.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1046, allocations: 0 / 366.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.068e-05/0.1047, allocations: 41.58 kB / 366.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.1047, allocations: 7.938 kB / 366.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.1047, allocations: 0 / 366.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.1047, allocations: 4 kB / 366.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.158e-05/0.1048, allocations: 0 / 366.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.1048, allocations: 0 / 366.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.543e-05/0.1048, allocations: 0 / 366.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-06/0.1048, allocations: 0 / 366.7 MB, free: 5.23 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.631e-05/0.1049, allocations: 117.8 kB / 366.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.008e-05/0.1049, allocations: 7.984 kB / 366.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.211e-05/0.1049, allocations: 7.078 kB / 366.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1049, allocations: 0 / 366.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1049, allocations: 0 / 366.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-06/0.1049, allocations: 0 / 366.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001038/0.1051, allocations: 157.6 kB / 367 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.1051, allocations: 0 / 367 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.316e-06/0.1051, allocations: 0 / 367 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1051, allocations: 4 kB / 367 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.1051, allocations: 4 kB / 367 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1051, allocations: 0 / 367 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1051, allocations: 3.984 kB / 367 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.23e-05/0.1052, allocations: 65 kB / 367.1 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.211e-05/0.1052, allocations: 81.02 kB / 367.2 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.1052, allocations: 4.188 kB / 367.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.363e-05/0.1052, allocations: 4 kB / 367.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.107e-05/0.1053, allocations: 8.016 kB / 367.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.853e-06/0.1053, allocations: 0 / 367.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.933e-05/0.1053, allocations: 83.27 kB / 367.3 MB, free: 4.594 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1053, allocations: 3.938 kB / 367.3 MB, free: 4.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003798/0.1057, allocations: 144 kB / 367.4 MB, free: 4.449 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.0009186/0.1066, allocations: 0.4959 MB / 367.9 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.459e-05/0.1067, allocations: 3.938 kB / 367.9 MB, free: 4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.1067, allocations: 4 kB / 367.9 MB, free: 3.996 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.39e-06/0.1067, allocations: 0 / 367.9 MB, free: 3.996 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.1069, allocations: 10.59 kB / 367.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002149/0.1071, allocations: 106.7 kB / 368 MB, free: 3.859 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.1073, allocations: 0.6729 MB / 368.7 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.19e-05/0.1073, allocations: 7.984 kB / 368.7 MB, free: 3.152 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.194e-05/0.1074, allocations: 15.42 kB / 368.7 MB, free: 3.137 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1074, allocations: 0 / 368.7 MB, free: 3.137 MB / 302.1 MB Notification: Performance of Templates: time 0.005872/0.1132, allocations: 3.136 MB / 371.9 MB, free: 0 / 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 cvode -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