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.001689/0.001689, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.365/1.365, allocations: 221.3 MB / 235.5 MB, free: 2.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008455/0.0008457, allocations: 94.09 kB / 286.5 MB, free: 172 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.367e-05/2.385e-05, allocations: 4 kB / 343.8 MB, free: 4.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 50.41 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3517/0.4655, allocations: 79.05 MB / 473.3 MB, free: 8.512 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.4658, allocations: 71.95 kB / 473.3 MB, free: 8.441 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01711/0.4829, allocations: 6.357 MB / 479.7 MB, free: 2.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4829, allocations: 0 / 479.7 MB, free: 2.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.483, allocations: 0 / 479.7 MB, free: 2.09 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.0004398/0.4834, allocations: 426.3 kB / 480.1 MB, free: 1.629 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.4835, allocations: 8.031 kB / 480.1 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.37e-05/0.4835, allocations: 83.23 kB / 480.2 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.4837, allocations: 242.9 kB / 480.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.529e-05/0.4837, allocations: 150.6 kB / 480.6 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.588e-05/0.4838, allocations: 154.6 kB / 480.7 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.126e-05/0.4838, allocations: 105 kB / 480.8 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.4839, allocations: 75.28 kB / 480.9 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.21e-05/0.4839, allocations: 154.5 kB / 481.1 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.445e-05/0.484, allocations: 154.6 kB / 481.2 MB, free: 484 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.285e-05/0.484, allocations: 158.5 kB / 481.4 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002938/0.4843, allocations: 449.9 kB / 481.8 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.421e-05/0.4844, allocations: 169.1 kB / 482 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.869e-05/0.4844, allocations: 80.14 kB / 482.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.4845, allocations: 75.28 kB / 482.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.837e-05/0.4846, allocations: 55.34 kB / 482.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 2.314e-06/0.4846, allocations: 0 / 482.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001131/0.4847, allocations: 37.61 kB / 482.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.4848, allocations: 55.41 kB / 482.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.962e-05/0.4848, allocations: 96.94 kB / 482.4 MB, free: 15.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.4849, allocations: 25.7 kB / 482.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.958e-05/0.4849, allocations: 84.14 kB / 482.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.345e-05/0.4849, allocations: 4 kB / 482.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-06/0.4849, allocations: 4.031 kB / 482.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.386e-05/0.485, allocations: 310.8 kB / 482.8 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.803e-06/0.485, allocations: 0 / 482.8 MB, free: 14.78 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.767e-06/0.485, allocations: 0 / 482.8 MB, free: 14.78 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.468e-05/0.4851, allocations: 7.938 kB / 482.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4851, allocations: 0 / 482.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.593e-05/0.4851, allocations: 33.69 kB / 482.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.4851, allocations: 4 kB / 482.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.4852, allocations: 8.094 kB / 482.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.4852, allocations: 3.938 kB / 482.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.639e-05/0.4852, allocations: 0 / 482.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.4852, allocations: 0 / 482.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.5e-05/0.4852, allocations: 0 / 482.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.4852, allocations: 3.953 kB / 482.9 MB, free: 14.71 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 () * 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.231e-05/0.4853, allocations: 109 kB / 483 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.882e-06/0.4853, allocations: 0 / 483 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.727e-05/0.4854, allocations: 7.109 kB / 483 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.4854, allocations: 4 kB / 483 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.4854, allocations: 0 / 483 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.4854, allocations: 0 / 483 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001023/0.4855, allocations: 153.6 kB / 483.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.4855, allocations: 0 / 483.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.065e-06/0.4855, allocations: 0 / 483.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.4855, allocations: 192 / 483.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.4855, allocations: 7.938 kB / 483.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4855, allocations: 0 / 483.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.4855, allocations: 0 / 483.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.23e-05/0.4856, allocations: 72.92 kB / 483.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.644e-05/0.4856, allocations: 85.09 kB / 483.3 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.4857, allocations: 0 / 483.3 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.322e-05/0.4857, allocations: 4 kB / 483.3 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.238e-06/0.4857, allocations: 0 / 483.3 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-06/0.4857, allocations: 0 / 483.3 MB, free: 14.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.607e-05/0.4857, allocations: 79.28 kB / 483.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4858, allocations: 4 kB / 483.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004717/0.4862, allocations: 163.9 kB / 483.5 MB, free: 13.95 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 () * 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.0008968/0.4871, allocations: 498.1 kB / 484 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 5.209e-05/0.4872, allocations: 8 kB / 484 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4872, allocations: 0 / 484 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.388e-06/0.4872, allocations: 0 / 484 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.883e-05/0.4873, allocations: 7.953 kB / 484 MB, free: 13.51 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001464/0.4875, allocations: 56.88 kB / 484.1 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001956/0.4877, allocations: 0.6809 MB / 484.8 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.73e-05/0.4877, allocations: 12.11 kB / 484.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.709e-05/0.4877, allocations: 11.44 kB / 484.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4877, allocations: 0 / 484.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of Templates: time 0.00544/0.4932, allocations: 2.752 MB / 487.5 MB, free: 9.945 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/jenkins/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