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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 202.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009699/0.0009702, allocations: 91.28 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.122e-05/2.135e-05, allocations: 4 kB / 343.7 MB, free: 8.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1308, allocations: 51.48 MB / 395.2 MB, free: 4.801 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4052/0.536, allocations: 79.19 MB / 474.3 MB, free: 12.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/0.5363, allocations: 69.33 kB / 474.4 MB, free: 12.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01671/0.553, allocations: 6.589 MB / 481 MB, free: 8.758 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.553, allocations: 0 / 481 MB, free: 8.758 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.5531, allocations: 0 / 481 MB, free: 8.758 MB / 346.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.0005779/0.5537, allocations: 444.6 kB / 481.4 MB, free: 8.285 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.5537, allocations: 12.03 kB / 481.4 MB, free: 8.273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.711e-05/0.5538, allocations: 79.28 kB / 481.5 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.554, allocations: 242 kB / 481.8 MB, free: 7.922 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.681e-05/0.554, allocations: 155.4 kB / 481.9 MB, free: 7.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.554, allocations: 154.6 kB / 482.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.271e-05/0.5541, allocations: 150.6 kB / 482.2 MB, free: 7.469 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.944e-05/0.5541, allocations: 112.6 kB / 482.3 MB, free: 7.355 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.5542, allocations: 75.28 kB / 482.4 MB, free: 7.281 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.346e-05/0.5542, allocations: 150.6 kB / 482.5 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.186e-05/0.5543, allocations: 150.6 kB / 482.7 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002255/0.5545, allocations: 429.8 kB / 483.1 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.958e-05/0.5546, allocations: 179.8 kB / 483.3 MB, free: 6.352 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.591e-05/0.5546, allocations: 80.14 kB / 483.4 MB, free: 6.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.5546, allocations: 75.28 kB / 483.4 MB, free: 6.195 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001025/0.5547, allocations: 39.42 kB / 483.5 MB, free: 6.145 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 2.525e-06/0.5547, allocations: 0 / 483.5 MB, free: 6.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.000141/0.5549, allocations: 48.39 kB / 483.5 MB, free: 6.094 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.5549, allocations: 55.41 kB / 483.6 MB, free: 6.027 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.516e-05/0.555, allocations: 92.25 kB / 483.7 MB, free: 5.934 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.5551, allocations: 25.7 kB / 483.7 MB, free: 5.902 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.069e-05/0.5551, allocations: 80.14 kB / 483.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.5551, allocations: 3.25 kB / 483.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.074e-06/0.5551, allocations: 0 / 483.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.238e-05/0.5552, allocations: 318.8 kB / 484.1 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.622e-06/0.5552, allocations: 4.031 kB / 484.1 MB, free: 5.496 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.488e-06/0.5552, allocations: 0 / 484.1 MB, free: 5.496 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.196e-05/0.5552, allocations: 0 / 484.1 MB, free: 5.496 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5552, allocations: 0 / 484.1 MB, free: 5.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.681e-05/0.5553, allocations: 40.89 kB / 484.1 MB, free: 5.453 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.5553, allocations: 5.25 kB / 484.1 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.5553, allocations: 0 / 484.1 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.5554, allocations: 0 / 484.1 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.459e-05/0.5554, allocations: 3.953 kB / 484.1 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.5554, allocations: 8.031 kB / 484.1 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.555e-05/0.5554, allocations: 0 / 484.1 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-06/0.5554, allocations: 4 kB / 484.1 MB, free: 5.434 MB / 346.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 6.382e-05/0.5555, allocations: 105 kB / 484.2 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.979e-06/0.5555, allocations: 4.562 kB / 484.3 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.229e-05/0.5556, allocations: 7.75 kB / 484.3 MB, free: 5.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.5556, allocations: 0 / 484.3 MB, free: 5.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.5556, allocations: 3.953 kB / 484.3 MB, free: 5.316 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.5556, allocations: 1.688 kB / 484.3 MB, free: 5.316 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000103/0.5557, allocations: 134.2 kB / 484.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.5557, allocations: 0 / 484.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-06/0.5557, allocations: 0 / 484.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.5557, allocations: 0 / 484.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.5557, allocations: 0 / 484.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.5557, allocations: 0 / 484.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5557, allocations: 0 / 484.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.825e-05/0.5558, allocations: 68.11 kB / 484.5 MB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.592e-05/0.5559, allocations: 81.14 kB / 484.5 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.5559, allocations: 0 / 484.5 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.238e-05/0.5559, allocations: 0 / 484.5 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.138e-05/0.5559, allocations: 7.938 kB / 484.6 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-06/0.5559, allocations: 0 / 484.6 MB, free: 4.961 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.216e-05/0.556, allocations: 85.83 kB / 484.6 MB, free: 4.879 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.556, allocations: 0 / 484.6 MB, free: 4.879 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00057/0.5566, allocations: 192 kB / 484.8 MB, free: 4.711 MB / 346.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.001162/0.5577, allocations: 0.537 MB / 485.4 MB, free: 4.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.376e-05/0.5578, allocations: 4 kB / 485.4 MB, free: 4.266 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5578, allocations: 0 / 485.4 MB, free: 4.266 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.208e-06/0.5578, allocations: 0 / 485.4 MB, free: 4.266 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001307/0.558, allocations: 9.531 kB / 485.4 MB, free: 4.258 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000203/0.5582, allocations: 58.12 kB / 485.4 MB, free: 4.184 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000164/0.5584, allocations: 0.673 MB / 486.1 MB, free: 3.484 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.31e-05/0.5584, allocations: 15.92 kB / 486.1 MB, free: 3.469 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.094e-05/0.5584, allocations: 15.42 kB / 486.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5584, allocations: 0 / 486.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of Templates: time 0.006265/0.5647, allocations: 3.044 MB / 489.2 MB, free: 444 kB / 346.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches