Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.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.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001509/0.001509, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007154/0.0007154, allocations: 91.84 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001877/0.0001877, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1638, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.035/0.1988, allocations: 46.75 MB / 454.2 MB, free: 12.97 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004896/0.2038, allocations: 4.845 MB / 459.1 MB, free: 8.113 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002531/0.2041, allocations: 3.938 kB / 459.1 MB, free: 8.109 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004946/0.2046, allocations: 171 kB / 459.3 MB, free: 7.941 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005755/0.2052, allocations: 350.1 kB / 459.6 MB, free: 7.598 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01177/0.2169, allocations: 5.234 MB / 464.8 MB, free: 2.371 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001253/0.2182, allocations: 1.329 MB / 466.2 MB, free: 1.039 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.2184, allocations: 107.1 kB / 466.3 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006991/0.2254, allocations: 6.128 MB / 472.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004241/0.2258, allocations: 394.6 kB / 472.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.051e-05/0.2259, allocations: 24 kB / 472.8 MB, free: 10.39 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0124/0.2383, allocations: 8.497 MB / 481.3 MB, free: 1.879 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.2385, allocations: 191.5 kB / 481.5 MB, free: 1.691 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.2387, allocations: 125.5 kB / 481.6 MB, free: 1.562 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004307/0.243, allocations: 3.559 MB / 485.2 MB, free: 14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.243, allocations: 0 / 485.2 MB, free: 14 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.243, allocations: 0 / 485.2 MB, free: 14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.243, allocations: 0 / 485.2 MB, free: 14 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002722/0.2457, allocations: 1.259 MB / 486.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.2458, allocations: 12.02 kB / 486.4 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002875/0.2461, allocations: 55.44 kB / 486.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004414/0.2465, allocations: 362.2 kB / 486.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.2466, allocations: 32.95 kB / 486.9 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.095e-05/0.2466, allocations: 48 kB / 486.9 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.2478, allocations: 0.5843 MB / 487.5 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.2479, allocations: 3.938 kB / 487.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.08e-05/0.2479, allocations: 16 kB / 487.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.2479, allocations: 12 kB / 487.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001219/0.2492, allocations: 0.7417 MB / 488.3 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01502/0.2642, allocations: 12 MB / 0.4886 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.2654, allocations: 0.5314 MB / 0.4891 GB, free: 12.17 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003562/0.2657, allocations: 261 kB / 0.4893 GB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1478/0.4135, allocations: 11.94 MB / 0.501 GB, free: 95.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.4136, allocations: 41.12 kB / 0.501 GB, free: 95.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 1.983e-06/0.4136, allocations: 2.812 kB / 0.501 GB, free: 95.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.005107/0.4187, allocations: 2.14 MB / 0.5031 GB, free: 94.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.819e-05/0.4187, allocations: 59.91 kB / 0.5032 GB, free: 94.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.419, allocations: 313.2 kB / 0.5035 GB, free: 94.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/0.4191, allocations: 37.83 kB / 0.5035 GB, free: 94.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.571e-05/0.4191, allocations: 206.2 kB / 0.5037 GB, free: 94.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.419e-05/0.4192, allocations: 187.2 kB / 0.5039 GB, free: 94.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.673e-05/0.4193, allocations: 14.75 kB / 0.5039 GB, free: 94.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.584e-05/0.4193, allocations: 351.8 kB / 0.5042 GB, free: 93.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003332/0.4197, allocations: 234.6 kB / 0.5045 GB, free: 93.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000512/0.4202, allocations: 346.5 kB / 0.5048 GB, free: 93.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005272/0.4207, allocations: 279.8 kB / 0.5051 GB, free: 93.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4207, allocations: 0 / 0.5051 GB, free: 93.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001488/0.4222, allocations: 0.7582 MB / 0.5058 GB, free: 93.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.4223, allocations: 7.75 kB / 0.5058 GB, free: 93.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.4223, allocations: 0 / 0.5058 GB, free: 93.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003864/0.4227, allocations: 109.8 kB / 0.5059 GB, free: 93.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004523/0.4231, allocations: 124.2 kB / 0.506 GB, free: 93.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.4245, allocations: 3.277 MB / 0.5092 GB, free: 89.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003136/0.4248, allocations: 38.56 kB / 0.5093 GB, free: 89.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-05/0.4249, allocations: 33.11 kB / 0.5093 GB, free: 89.95 MB / 378.7 MB 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {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.0001761/0.4251, allocations: 191.7 kB / 0.5095 GB, free: 89.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002117/0.4253, allocations: 43.36 kB / 0.5095 GB, free: 89.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001281/0.4266, allocations: 0.8263 MB / 0.5103 GB, free: 89.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.4266, allocations: 4.188 kB / 0.5103 GB, free: 89.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.4266, allocations: 5.156 kB / 0.5103 GB, free: 89.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008406/0.4275, allocations: 0.7659 MB / 0.5111 GB, free: 88.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.4291, allocations: 1.3 MB / 0.5124 GB, free: 88.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4291, allocations: 0 / 0.5124 GB, free: 88.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003929/0.4295, allocations: 95.78 kB / 0.5124 GB, free: 88.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007903/0.4303, allocations: 150.2 kB / 0.5126 GB, free: 88.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.239e-05/0.4304, allocations: 19.55 kB / 0.5126 GB, free: 88.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002378/0.4306, allocations: 0.6445 MB / 0.5132 GB, free: 87.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4306, allocations: 4.625 kB / 0.5132 GB, free: 87.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.4321, allocations: 0.899 MB / 0.5141 GB, free: 87.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.725e-05/0.4322, allocations: 139.7 kB / 0.5143 GB, free: 86.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.895e-05/0.4322, allocations: 16.08 kB / 0.5143 GB, free: 86.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004021/0.4326, allocations: 35.41 kB / 0.5143 GB, free: 86.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.586e-05/0.4327, allocations: 34.86 kB / 0.5143 GB, free: 86.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.113e-05/0.4327, allocations: 34.16 kB / 0.5144 GB, free: 86.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002011/0.433, allocations: 250.9 kB / 0.5146 GB, free: 86.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.433, allocations: 0 / 0.5146 GB, free: 86.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002626/0.4356, allocations: 1.318 MB / 0.5159 GB, free: 86.63 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0035/0.4391, allocations: 1.554 MB / 0.5174 GB, free: 86.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.4401, allocations: 0.8001 MB / 0.5182 GB, free: 85.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4402, allocations: 0 / 0.5182 GB, free: 85.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004063/0.4406, allocations: 291.2 kB / 0.5185 GB, free: 85.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.4418, allocations: 261.7 kB / 0.5187 GB, free: 85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.4431, allocations: 1.362 MB / 0.5201 GB, free: 83.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001816/0.4433, allocations: 0.8329 MB / 0.5209 GB, free: 82.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.4435, allocations: 63.41 kB / 0.5209 GB, free: 82.75 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4435, allocations: 4 kB / 0.5209 GB, free: 82.75 MB / 378.7 MB Notification: Performance of Templates: time 0.03116/0.4747, allocations: 33.85 MB / 0.554 GB, free: 48.9 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches