Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00153/0.001529, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.087/2.087, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001098/0.001098, allocations: 83.05 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.575e-05/2.586e-05, allocations: 4 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3481, allocations: 47.57 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1272/0.4754, allocations: 77.29 MB / 439.6 MB, free: 9.02 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/0.4757, allocations: 67.97 kB / 439.7 MB, free: 8.953 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02728/0.503, allocations: 6.108 MB / 445.8 MB, free: 2.879 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.5031, allocations: 0 / 445.8 MB, free: 2.879 MB / 331.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.5031, allocations: 0 / 445.8 MB, free: 2.879 MB / 331.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.0007172/0.5038, allocations: 431.6 kB / 446.2 MB, free: 2.414 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.5039, allocations: 8.031 kB / 446.2 MB, free: 2.406 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.692e-05/0.504, allocations: 79.28 kB / 446.3 MB, free: 2.328 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/0.5042, allocations: 241.6 kB / 446.5 MB, free: 2.055 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.474e-05/0.5043, allocations: 154.5 kB / 446.7 MB, free: 1.902 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.399e-05/0.5044, allocations: 156.9 kB / 446.8 MB, free: 1.75 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.897e-05/0.5044, allocations: 154.5 kB / 447 MB, free: 1.598 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.976e-05/0.5045, allocations: 103.6 kB / 447.1 MB, free: 1.492 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.222e-05/0.5046, allocations: 79.22 kB / 447.2 MB, free: 1.414 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-05/0.5047, allocations: 154.5 kB / 447.3 MB, free: 1.262 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.806e-05/0.5047, allocations: 153.8 kB / 447.5 MB, free: 1.113 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003049/0.5051, allocations: 428.6 kB / 447.9 MB, free: 0.6602 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.773e-05/0.5052, allocations: 173.1 kB / 448.1 MB, free: 492 kB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.708e-05/0.5052, allocations: 80.14 kB / 448.1 MB, free: 408 kB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.5053, allocations: 75.28 kB / 448.2 MB, free: 332 kB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001245/0.5054, allocations: 51.27 kB / 448.3 MB, free: 268 kB / 331.1 MB Notification: Performance of pre-optimization done (n=1): time 3.216e-06/0.5054, allocations: 0 / 448.3 MB, free: 268 kB / 331.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001476/0.5056, allocations: 37.64 kB / 448.3 MB, free: 224 kB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.5056, allocations: 55.44 kB / 448.3 MB, free: 156 kB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.861e-05/0.5057, allocations: 97.92 kB / 448.4 MB, free: 52 kB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.5057, allocations: 25.7 kB / 448.5 MB, free: 20 kB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.071e-05/0.5058, allocations: 154.6 kB / 448.6 MB, free: 15.87 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.5059, allocations: 0 / 448.6 MB, free: 15.87 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-06/0.5059, allocations: 0 / 448.6 MB, free: 15.87 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.506, allocations: 310.8 kB / 448.9 MB, free: 15.55 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.087e-05/0.506, allocations: 4 kB / 448.9 MB, free: 15.55 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.891e-06/0.5061, allocations: 4 kB / 448.9 MB, free: 15.55 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.413e-05/0.5061, allocations: 0 / 448.9 MB, free: 15.55 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.5061, allocations: 0 / 448.9 MB, free: 15.55 MB / 347.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.296e-05/0.5062, allocations: 38.75 kB / 449 MB, free: 15.5 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.5062, allocations: 8 kB / 449 MB, free: 15.5 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.5062, allocations: 0 / 449 MB, free: 15.5 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.5062, allocations: 0 / 449 MB, free: 15.5 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.46e-05/0.5063, allocations: 3.953 kB / 449 MB, free: 15.49 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.5063, allocations: 2.266 kB / 449 MB, free: 15.49 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.942e-05/0.5063, allocations: 4.094 kB / 449 MB, free: 15.49 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.5063, allocations: 0 / 449 MB, free: 15.49 MB / 347.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.303e-05/0.5064, allocations: 105 kB / 449.1 MB, free: 15.38 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.038e-05/0.5065, allocations: 0 / 449.1 MB, free: 15.38 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.886e-05/0.5065, allocations: 14.61 kB / 449.1 MB, free: 15.37 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.5065, allocations: 0 / 449.1 MB, free: 15.37 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.5065, allocations: 5.922 kB / 449.1 MB, free: 15.36 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.5065, allocations: 4 kB / 449.1 MB, free: 15.36 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.5067, allocations: 126.2 kB / 449.2 MB, free: 15.2 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.5067, allocations: 0 / 449.2 MB, free: 15.2 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.972e-06/0.5067, allocations: 8.688 kB / 449.2 MB, free: 15.19 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.5067, allocations: 4 kB / 449.2 MB, free: 15.19 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.5067, allocations: 0 / 449.2 MB, free: 15.19 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.5068, allocations: 0 / 449.2 MB, free: 15.19 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.5068, allocations: 0 / 449.2 MB, free: 15.19 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.593e-05/0.5069, allocations: 62.91 kB / 449.3 MB, free: 15.11 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.554e-05/0.5069, allocations: 89 kB / 449.4 MB, free: 15 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.507, allocations: 0 / 449.4 MB, free: 15 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.729e-05/0.507, allocations: 4.031 kB / 449.4 MB, free: 15 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.536e-05/0.507, allocations: 0 / 449.4 MB, free: 15 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.507, allocations: 0 / 449.4 MB, free: 15 MB / 347.1 MB Notification: Performance of sorting global known variables: time 4.934e-05/0.5071, allocations: 83.28 kB / 449.5 MB, free: 14.92 MB / 347.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5071, allocations: 0 / 449.5 MB, free: 14.92 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007827/0.5079, allocations: 151.9 kB / 449.6 MB, free: 14.77 MB / 347.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001384/0.5093, allocations: 0.489 MB / 450.1 MB, free: 14.33 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 8.023e-05/0.5094, allocations: 4 kB / 450.1 MB, free: 14.32 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5094, allocations: 0 / 450.1 MB, free: 14.32 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 9.418e-06/0.5094, allocations: 4 kB / 450.1 MB, free: 14.32 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.5096, allocations: 12.89 kB / 450.1 MB, free: 14.31 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002227/0.5098, allocations: 82.48 kB / 450.2 MB, free: 14.2 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002613/0.5101, allocations: 0.6768 MB / 450.9 MB, free: 13.5 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.173e-05/0.5101, allocations: 15.42 kB / 450.9 MB, free: 13.48 MB / 347.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5101, allocations: 0 / 450.9 MB, free: 13.48 MB / 347.1 MB Notification: Performance of Templates: time 0.009073/0.5192, allocations: 3.295 MB / 454.2 MB, free: 10.19 MB / 347.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches