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.0008947/0.0008947, allocations: 177.3 kB / 17.41 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.297/1.297, allocations: 205.4 MB / 223.6 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006861/0.0006863, allocations: 85.38 kB / 271.9 MB, free: 8.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003797/0.0003798, allocations: 8 kB / 328.1 MB, free: 15.97 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2238, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08991/0.3138, allocations: 78.08 MB / 453.8 MB, free: 2.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.314, allocations: 71.97 kB / 453.8 MB, free: 2.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01694/0.331, allocations: 6.434 MB / 460.3 MB, free: 12.06 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.331, allocations: 4 kB / 460.3 MB, free: 12.06 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.331, allocations: 0 / 460.3 MB, free: 12.06 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.0005109/0.3316, allocations: 437 kB / 460.7 MB, free: 11.58 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.3316, allocations: 8.031 kB / 460.7 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.439e-05/0.3317, allocations: 80.12 kB / 460.8 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.3318, allocations: 243.7 kB / 461 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.53e-05/0.3319, allocations: 150.9 kB / 461.2 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.432e-05/0.3319, allocations: 154.9 kB / 461.3 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.122e-05/0.332, allocations: 109.5 kB / 461.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.81e-05/0.332, allocations: 75.47 kB / 461.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.635e-05/0.3321, allocations: 162.5 kB / 461.7 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.967e-05/0.3322, allocations: 150.6 kB / 461.8 MB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.434e-05/0.3322, allocations: 150.6 kB / 462 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002971/0.3325, allocations: 449.9 kB / 462.4 MB, free: 9.785 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.569e-05/0.3326, allocations: 173.1 kB / 462.6 MB, free: 9.605 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.539e-05/0.3327, allocations: 80.14 kB / 462.7 MB, free: 9.523 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.156e-05/0.3327, allocations: 75.28 kB / 462.7 MB, free: 9.449 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.85e-05/0.3328, allocations: 55.44 kB / 462.8 MB, free: 9.383 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 2.245e-06/0.3328, allocations: 0 / 462.8 MB, free: 9.383 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001373/0.333, allocations: 37.58 kB / 462.8 MB, free: 9.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.333, allocations: 55.34 kB / 462.9 MB, free: 9.273 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.858e-05/0.3331, allocations: 109.8 kB / 463 MB, free: 9.156 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.3331, allocations: 25.7 kB / 463 MB, free: 9.125 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.985e-05/0.3332, allocations: 84.27 kB / 463.1 MB, free: 9.039 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.3332, allocations: 0 / 463.1 MB, free: 9.039 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-06/0.3332, allocations: 0 / 463.1 MB, free: 9.039 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.3333, allocations: 314.8 kB / 463.4 MB, free: 8.723 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.338e-06/0.3333, allocations: 7.984 kB / 463.4 MB, free: 8.715 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.117e-06/0.3333, allocations: 0 / 463.4 MB, free: 8.715 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.233e-05/0.3334, allocations: 8.859 kB / 463.4 MB, free: 8.703 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3334, allocations: 0 / 463.4 MB, free: 8.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.832e-05/0.3334, allocations: 41.61 kB / 463.5 MB, free: 8.656 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.3334, allocations: 7.938 kB / 463.5 MB, free: 8.648 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.3334, allocations: 4 kB / 463.5 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.3335, allocations: 0 / 463.5 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.602e-05/0.3335, allocations: 0 / 463.5 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.97e-06/0.3335, allocations: 3.938 kB / 463.5 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.556e-05/0.3335, allocations: 0 / 463.5 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-06/0.3335, allocations: 0 / 463.5 MB, free: 8.641 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 () * 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 6.891e-05/0.3336, allocations: 113.8 kB / 463.6 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.378e-06/0.3336, allocations: 11.97 kB / 463.6 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.238e-05/0.3337, allocations: 7.078 kB / 463.6 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3337, allocations: 0 / 463.6 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3337, allocations: 0 / 463.6 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.3337, allocations: 4 kB / 463.6 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.3339, allocations: 149.7 kB / 463.8 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3339, allocations: 0 / 463.8 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.226e-06/0.3339, allocations: 0 / 463.8 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.3339, allocations: 7.938 kB / 463.8 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.962e-06/0.3339, allocations: 0 / 463.8 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.3339, allocations: 0 / 463.8 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3339, allocations: 4 kB / 463.8 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.968e-05/0.334, allocations: 61.06 kB / 463.8 MB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.119e-05/0.334, allocations: 81.11 kB / 463.9 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.3341, allocations: 3.938 kB / 463.9 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.323e-05/0.3341, allocations: 0 / 463.9 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.233e-05/0.3341, allocations: 7.922 kB / 463.9 MB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-06/0.3341, allocations: 0 / 463.9 MB, free: 8.105 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.943e-05/0.3341, allocations: 87.31 kB / 464 MB, free: 8.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3342, allocations: 4 kB / 464 MB, free: 8.016 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005264/0.3347, allocations: 155.9 kB / 464.2 MB, free: 7.863 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 () * 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.0009613/0.3357, allocations: 499 kB / 464.6 MB, free: 7.402 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.406e-05/0.3357, allocations: 7.938 kB / 464.6 MB, free: 7.395 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3357, allocations: 0 / 464.6 MB, free: 7.395 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.699e-06/0.3358, allocations: 11.98 kB / 464.7 MB, free: 7.383 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001341/0.3359, allocations: 8 kB / 464.7 MB, free: 7.375 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002696/0.3362, allocations: 142.2 kB / 464.8 MB, free: 7.203 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.3364, allocations: 0.6731 MB / 465.5 MB, free: 6.504 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.791e-05/0.3365, allocations: 11.44 kB / 465.5 MB, free: 6.492 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3365, allocations: 0 / 465.5 MB, free: 6.492 MB / 346.7 MB Notification: Performance of Templates: time 0.004971/0.3414, allocations: 3.087 MB / 468.6 MB, free: 3.402 MB / 346.7 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