Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002464/0.002464, allocations: 198.4 kB / 18.07 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.831/2.831, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001311/0.00131, allocations: 94.59 kB / 297.4 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004166/0.0004168, allocations: 4 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4835/0.4839, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 26.96/27.45, allocations: 6.124 GB / 6.523 GB, free: 10.67 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004029/27.45, allocations: 75.97 kB / 6.523 GB, free: 10.59 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.848/32.3, allocations: 0.6443 GB / 7.168 GB, free: 32.75 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.156e-06/32.3, allocations: 2.953 kB / 7.168 GB, free: 32.75 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.482e-05/32.3, allocations: 10 kB / 7.168 GB, free: 32.75 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.01698/32.31, allocations: 2.374 MB / 7.17 GB, free: 31.34 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.15e-05/32.31, allocations: 11.38 kB / 7.17 GB, free: 31.34 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001104/32.32, allocations: 86.98 kB / 7.17 GB, free: 31.3 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/32.32, allocations: 457.2 kB / 7.171 GB, free: 31.04 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.609e-05/32.32, allocations: 44.91 kB / 7.171 GB, free: 31.04 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/32.32, allocations: 63.28 kB / 7.171 GB, free: 31.04 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003767/32.32, allocations: 0.7858 MB / 7.171 GB, free: 30.99 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.894e-05/32.32, allocations: 7.406 kB / 7.171 GB, free: 30.99 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001455/32.32, allocations: 29.78 kB / 7.172 GB, free: 30.98 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.301e-05/32.32, allocations: 15.75 kB / 7.172 GB, free: 30.98 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003754/32.33, allocations: 0.9987 MB / 7.173 GB, free: 30.98 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04208/32.37, allocations: 12.44 MB / 7.185 GB, free: 19.98 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003586/32.37, allocations: 0.7925 MB / 7.185 GB, free: 19.93 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/32.37, allocations: 403 kB / 7.186 GB, free: 19.92 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07621/32.45, allocations: 30.66 MB / 7.216 GB, free: 21.04 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00011/32.45, allocations: 46.02 kB / 7.216 GB, free: 21 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=78): time 7.534e-06/32.45, allocations: 3.469 kB / 7.216 GB, free: 21 MB / 0.4948 GB Notification: Performance of matching and sorting (n=88): time 0.02767/32.48, allocations: 3.493 MB / 7.219 GB, free: 19.93 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.277e-05/32.48, allocations: 66.78 kB / 7.219 GB, free: 19.87 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008349/32.48, allocations: 350.9 kB / 7.22 GB, free: 19.69 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002702/32.48, allocations: 45.42 kB / 7.22 GB, free: 19.64 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003352/32.48, allocations: 242.1 kB / 7.22 GB, free: 19.44 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005166/32.48, allocations: 310 kB / 7.22 GB, free: 19.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.611e-05/32.48, allocations: 15.56 kB / 7.22 GB, free: 19.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003133/32.48, allocations: 363.7 kB / 7.221 GB, free: 18.86 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/32.48, allocations: 354.8 kB / 7.221 GB, free: 18.73 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00178/32.48, allocations: 480.2 kB / 7.221 GB, free: 18.49 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003185/32.48, allocations: 0.8679 MB / 7.222 GB, free: 18.05 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/32.48, allocations: 3.969 kB / 7.222 GB, free: 18.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=106) (initialization): time 0.005238/32.49, allocations: 1.092 MB / 7.223 GB, free: 17.58 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.867e-05/32.49, allocations: 6.156 kB / 7.223 GB, free: 17.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/32.49, allocations: 3.719 kB / 7.223 GB, free: 17.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/32.49, allocations: 171.4 kB / 7.223 GB, free: 17.52 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/32.49, allocations: 198.3 kB / 7.224 GB, free: 17.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009556/32.5, allocations: 3.91 MB / 7.227 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/32.5, allocations: 63.33 kB / 7.227 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003925/32.5, allocations: 48.81 kB / 7.228 GB, free: 13.59 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00136/32.51, allocations: 230.2 kB / 7.228 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001338/32.51, allocations: 63.06 kB / 7.228 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005722/32.51, allocations: 1.307 MB / 7.229 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.011e-05/32.51, allocations: 8.75 kB / 7.229 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.892e-05/32.51, allocations: 7.188 kB / 7.229 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004167/32.52, allocations: 1.336 MB / 7.23 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007089/32.52, allocations: 1.997 MB / 7.232 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/32.52, allocations: 1.812 kB / 7.232 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/32.53, allocations: 168.8 kB / 7.233 GB, free: 10.83 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002777/32.53, allocations: 304.4 kB / 7.233 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001771/32.53, allocations: 32.53 kB / 7.233 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002406/32.53, allocations: 1.298 MB / 7.234 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.037e-05/32.53, allocations: 4 kB / 7.234 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005576/32.54, allocations: 1.431 MB / 7.236 GB, free: 24.85 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006648/32.54, allocations: 139.4 kB / 7.236 GB, free: 24.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003223/32.54, allocations: 22.53 kB / 7.236 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001568/32.54, allocations: 54.59 kB / 7.236 GB, free: 24.69 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002095/32.54, allocations: 57.77 kB / 7.236 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002879/32.54, allocations: 49.09 kB / 7.236 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0007517/32.54, allocations: 283.8 kB / 7.236 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.41e-07/32.54, allocations: 0 / 7.236 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0178/32.56, allocations: 2.288 MB / 7.238 GB, free: 23.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03315/32.59, allocations: 3.199 MB / 7.241 GB, free: 23.18 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004897/32.6, allocations: 1.163 MB / 7.243 GB, free: 22.62 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/32.6, allocations: 0 / 7.243 GB, free: 22.62 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001828/32.6, allocations: 0.5009 MB / 7.243 GB, free: 22.43 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004162/32.6, allocations: 370.1 kB / 7.243 GB, free: 22.31 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006471/32.61, allocations: 2.062 MB / 7.245 GB, free: 20.64 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/32.61, allocations: 0.9129 MB / 7.246 GB, free: 19.78 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007069/32.61, allocations: 98.36 kB / 7.246 GB, free: 19.7 MB / 0.5105 GB Notification: Performance of SimCode: time 2.164e-06/32.61, allocations: 0 / 7.246 GB, free: 19.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.886/33.5, allocations: 57.42 MB / 7.302 GB, free: 68.05 MB / 0.5105 GB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches