Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 172.2 kB / 17.39 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 223.3 MB / 241.4 MB, free: 11.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000769/0.000769, allocations: 99.38 kB / 292.6 MB, free: 10.76 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004659/0.000466, allocations: 15.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2743, allocations: 50.4 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0904/0.3647, allocations: 79.16 MB / 481.9 MB, free: 1.188 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.365, allocations: 80.98 kB / 482 MB, free: 1.109 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01761/0.3827, allocations: 6.504 MB / 488.5 MB, free: 10.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3827, allocations: 0 / 488.5 MB, free: 10.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.3827, allocations: 4 kB / 488.5 MB, free: 10.61 MB / 362.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.0005212/0.3833, allocations: 435.3 kB / 488.9 MB, free: 10.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.3833, allocations: 8.031 kB / 488.9 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.791e-05/0.3834, allocations: 84.12 kB / 489 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001873/0.3836, allocations: 247.6 kB / 489.2 MB, free: 9.758 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.653e-05/0.3836, allocations: 150.9 kB / 489.4 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.495e-05/0.3837, allocations: 154.9 kB / 489.5 MB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.578e-05/0.3838, allocations: 109.5 kB / 489.6 MB, free: 9.344 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.681e-05/0.3838, allocations: 75.47 kB / 489.7 MB, free: 9.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.526e-05/0.3838, allocations: 154.5 kB / 489.9 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.462e-05/0.3839, allocations: 154.6 kB / 490 MB, free: 8.965 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.274e-05/0.384, allocations: 154.5 kB / 490.2 MB, free: 8.812 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002667/0.3842, allocations: 453.9 kB / 490.6 MB, free: 8.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.046e-05/0.3843, allocations: 169.1 kB / 490.8 MB, free: 8.145 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.229e-05/0.3844, allocations: 84.14 kB / 490.9 MB, free: 8.059 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.3844, allocations: 75.28 kB / 490.9 MB, free: 7.984 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001063/0.3845, allocations: 51.34 kB / 491 MB, free: 7.922 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 2.695e-06/0.3845, allocations: 0 / 491 MB, free: 7.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001602/0.3847, allocations: 37.64 kB / 491 MB, free: 7.879 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.3847, allocations: 51.53 kB / 491.1 MB, free: 7.816 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.764e-05/0.3848, allocations: 105.8 kB / 491.2 MB, free: 7.703 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.108e-05/0.3848, allocations: 25.7 kB / 491.2 MB, free: 7.672 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.698e-05/0.3849, allocations: 84.14 kB / 491.3 MB, free: 7.586 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.295e-05/0.3849, allocations: 0 / 491.3 MB, free: 7.586 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.784e-06/0.3849, allocations: 3.938 kB / 491.3 MB, free: 7.582 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.487e-05/0.385, allocations: 310.8 kB / 491.6 MB, free: 7.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.818e-06/0.385, allocations: 4 kB / 491.6 MB, free: 7.266 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.457e-06/0.385, allocations: 7.922 kB / 491.6 MB, free: 7.258 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.118e-05/0.3851, allocations: 12.92 kB / 491.6 MB, free: 7.242 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3851, allocations: 0 / 491.6 MB, free: 7.242 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.726e-05/0.3851, allocations: 37.61 kB / 491.6 MB, free: 7.199 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3851, allocations: 7.938 kB / 491.7 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3852, allocations: 0 / 491.7 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.3852, allocations: 0 / 491.7 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.682e-05/0.3852, allocations: 0 / 491.7 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.3852, allocations: 0 / 491.7 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.591e-05/0.3852, allocations: 0 / 491.7 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.3852, allocations: 8.031 kB / 491.7 MB, free: 7.184 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.195e-05/0.3853, allocations: 109.8 kB / 491.8 MB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.28e-05/0.3853, allocations: 7.938 kB / 491.8 MB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.95e-05/0.3854, allocations: 11.06 kB / 491.8 MB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3854, allocations: 0 / 491.8 MB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3854, allocations: 3.938 kB / 491.8 MB, free: 7.043 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.3854, allocations: 0 / 491.8 MB, free: 7.043 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.3855, allocations: 149.7 kB / 491.9 MB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3855, allocations: 0 / 491.9 MB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.346e-06/0.3855, allocations: 4 kB / 491.9 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.3855, allocations: 3.938 kB / 491.9 MB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.278e-06/0.3855, allocations: 0 / 491.9 MB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3855, allocations: 0 / 491.9 MB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3856, allocations: 0 / 491.9 MB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.268e-05/0.3856, allocations: 61.12 kB / 492 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.922e-05/0.3857, allocations: 77.11 kB / 492.1 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.3857, allocations: 3.938 kB / 492.1 MB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.203e-05/0.3857, allocations: 4.031 kB / 492.1 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.823e-05/0.3857, allocations: 7.984 kB / 492.1 MB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-06/0.3858, allocations: 0 / 492.1 MB, free: 6.652 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.926e-05/0.3858, allocations: 87.22 kB / 492.2 MB, free: 6.566 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3858, allocations: 0 / 492.2 MB, free: 6.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005212/0.3863, allocations: 151.9 kB / 492.3 MB, free: 6.418 MB / 362.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 () * 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 (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.001085/0.3874, allocations: 0.5156 MB / 492.8 MB, free: 5.973 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 5.843e-05/0.3875, allocations: 4 kB / 492.8 MB, free: 5.969 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.3875, allocations: 0 / 492.8 MB, free: 5.969 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.618e-06/0.3875, allocations: 0 / 492.8 MB, free: 5.969 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000155/0.3877, allocations: 12.11 kB / 492.9 MB, free: 5.957 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002294/0.3879, allocations: 112.5 kB / 493 MB, free: 5.816 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002041/0.3881, allocations: 0.6808 MB / 493.7 MB, free: 5.109 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.579e-05/0.3882, allocations: 7.984 kB / 493.7 MB, free: 5.102 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.133e-05/0.3882, allocations: 11.44 kB / 493.7 MB, free: 5.09 MB / 362.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3882, allocations: 0 / 493.7 MB, free: 5.09 MB / 362.7 MB Notification: Performance of Templates: time 0.005993/0.3942, allocations: 2.748 MB / 496.4 MB, free: 2.344 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches