Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009567/0.0009566, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008977/0.0008978, allocations: 94.22 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.708e-05/1.71e-05, allocations: 4 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09175/0.09179, allocations: 47.58 MB / 363.1 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.336/0.4278, allocations: 77.53 MB / 440.6 MB, free: 2.137 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.4281, allocations: 68.22 kB / 440.7 MB, free: 2.105 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0167/0.4448, allocations: 6.113 MB / 446.8 MB, free: 13.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4449, allocations: 0 / 446.8 MB, free: 13.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.4449, allocations: 0 / 446.8 MB, free: 13.27 MB / 330.7 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.0005349/0.4455, allocations: 425.3 kB / 447.2 MB, free: 12.81 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.4455, allocations: 15.97 kB / 447.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.841e-05/0.4456, allocations: 79.28 kB / 447.3 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.4458, allocations: 235 kB / 447.5 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.262e-05/0.4458, allocations: 154.5 kB / 447.7 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.953e-05/0.4459, allocations: 156 kB / 447.8 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.532e-05/0.446, allocations: 159.2 kB / 448 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.991e-05/0.446, allocations: 105 kB / 448.1 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/0.4461, allocations: 75.28 kB / 448.1 MB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.772e-05/0.4461, allocations: 154.5 kB / 448.3 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.675e-05/0.4462, allocations: 154.5 kB / 448.4 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002528/0.4464, allocations: 430.3 kB / 448.9 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.792e-05/0.4465, allocations: 169.1 kB / 449 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.048e-05/0.4465, allocations: 80.14 kB / 449.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.4466, allocations: 79.22 kB / 449.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001013/0.4467, allocations: 43.33 kB / 449.2 MB, free: 10.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 2.184e-06/0.4467, allocations: 7.938 kB / 449.2 MB, free: 10.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001238/0.4468, allocations: 41.39 kB / 449.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.4469, allocations: 51.41 kB / 449.3 MB, free: 10.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.152e-05/0.4469, allocations: 93 kB / 449.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.447, allocations: 25.7 kB / 449.4 MB, free: 10.42 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.818e-05/0.447, allocations: 84.08 kB / 449.5 MB, free: 10.34 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.447, allocations: 0 / 449.5 MB, free: 10.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.854e-06/0.447, allocations: 0 / 449.5 MB, free: 10.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.4472, allocations: 318.9 kB / 449.8 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.703e-06/0.4472, allocations: 4 kB / 449.8 MB, free: 10.01 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.817e-06/0.4472, allocations: 0 / 449.8 MB, free: 10.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.212e-05/0.4472, allocations: 0 / 449.8 MB, free: 10.01 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4472, allocations: 0 / 449.8 MB, free: 10.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.093e-05/0.4473, allocations: 37.64 kB / 449.9 MB, free: 9.969 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.4473, allocations: 4 kB / 449.9 MB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.4473, allocations: 0 / 449.9 MB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.4473, allocations: 0 / 449.9 MB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.108e-05/0.4473, allocations: 4.047 kB / 449.9 MB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.4474, allocations: 4 kB / 449.9 MB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.704e-05/0.4474, allocations: 0 / 449.9 MB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.4474, allocations: 0 / 449.9 MB, free: 9.957 MB / 330.7 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 7.912e-05/0.4475, allocations: 112.8 kB / 450 MB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.665e-06/0.4475, allocations: 0 / 450 MB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.499e-05/0.4475, allocations: 7.703 kB / 450 MB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.4475, allocations: 4 kB / 450 MB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.4476, allocations: 3.953 kB / 450 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.4476, allocations: 0 / 450 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001052/0.4477, allocations: 130.2 kB / 450.1 MB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.4477, allocations: 0 / 450.1 MB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.83e-06/0.4477, allocations: 11.94 kB / 450.1 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.4477, allocations: 0 / 450.1 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.4477, allocations: 0 / 450.1 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.4477, allocations: 0 / 450.1 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4477, allocations: 0 / 450.1 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.553e-05/0.4478, allocations: 71.73 kB / 450.2 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.161e-05/0.4479, allocations: 81.33 kB / 450.3 MB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.173e-05/0.4479, allocations: 0 / 450.3 MB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.158e-05/0.4479, allocations: 0 / 450.3 MB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.035e-05/0.4479, allocations: 3.984 kB / 450.3 MB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-06/0.4479, allocations: 0 / 450.3 MB, free: 9.465 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.563e-05/0.448, allocations: 90.95 kB / 450.4 MB, free: 9.379 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.448, allocations: 4 kB / 450.4 MB, free: 9.375 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006007/0.4486, allocations: 157.1 kB / 450.5 MB, free: 9.23 MB / 330.7 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.0009518/0.4495, allocations: 481.1 kB / 451 MB, free: 8.766 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.656e-05/0.4496, allocations: 4 kB / 451 MB, free: 8.762 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4496, allocations: 0 / 451 MB, free: 8.762 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.933e-06/0.4497, allocations: 4 kB / 451 MB, free: 8.758 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001097/0.4498, allocations: 13.73 kB / 451 MB, free: 8.746 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001787/0.45, allocations: 59.73 kB / 451.1 MB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.4502, allocations: 0.6729 MB / 451.8 MB, free: 7.969 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.838e-05/0.4502, allocations: 7.984 kB / 451.8 MB, free: 7.961 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.813e-05/0.4502, allocations: 15.42 kB / 451.8 MB, free: 7.945 MB / 330.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4502, allocations: 4 kB / 451.8 MB, free: 7.941 MB / 330.7 MB Notification: Performance of Templates: time 0.005952/0.4562, allocations: 2.696 MB / 454.5 MB, free: 5.258 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/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_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches