Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 201.5 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 226.5 MB / 243.1 MB, free: 14.28 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007846/0.0007846, allocations: 104.8 kB / 295.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1804/0.1804, allocations: 44.84 MB / 392 MB, free: 9.301 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002341/0.0002342, allocations: 8 kB / 464.7 MB, free: 49.72 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08864/0.08889, allocations: 62.95 MB / 0.5153 GB, free: 2.73 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir): time 0.3548/0.4437, allocations: 174 MB / 0.6853 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.009322/0.4531, allocations: 7.002 MB / 0.6921 GB, free: 8.234 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009364/0.454, allocations: 23.75 kB / 0.6921 GB, free: 8.211 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.4552, allocations: 314 kB / 0.6924 GB, free: 7.902 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.005624/0.4608, allocations: 1.889 MB / 0.6943 GB, free: 6.004 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.004495/0.4653, allocations: 1.658 MB / 0.6959 GB, free: 4.352 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.002921/0.4683, allocations: 2.656 MB / 0.6985 GB, free: 1.688 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001099/0.4694, allocations: 496.2 kB / 0.699 GB, free: 1.191 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004248/0.4736, allocations: 1.554 MB / 0.7005 GB, free: 15.63 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001581/0.4752, allocations: 0.8606 MB / 0.7013 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0003177/0.4756, allocations: 44 kB / 0.7014 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008182/0.4838, allocations: 4.303 MB / 0.7056 GB, free: 10.42 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0006877/0.4845, allocations: 386.9 kB / 0.7059 GB, free: 10.04 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.000491/0.485, allocations: 209.3 kB / 0.7061 GB, free: 9.828 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.004637/0.4896, allocations: 2.471 MB / 0.7086 GB, free: 7.352 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.4897, allocations: 0 / 0.7086 GB, free: 7.352 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.823e-06/0.4897, allocations: 0 / 0.7086 GB, free: 7.352 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.798e-05/0.4897, allocations: 0 / 0.7086 GB, free: 7.352 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.004081/0.4938, allocations: 1.551 MB / 0.7101 GB, free: 5.746 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.4939, allocations: 12.03 kB / 0.7101 GB, free: 5.734 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005011/0.4944, allocations: 110.9 kB / 0.7102 GB, free: 5.625 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.4954, allocations: 0.5668 MB / 0.7107 GB, free: 5.02 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.4955, allocations: 113.4 kB / 0.7109 GB, free: 4.898 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.4957, allocations: 75.86 kB / 0.7109 GB, free: 4.824 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001862/0.4976, allocations: 1.158 MB / 0.7121 GB, free: 3.613 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.475e-05/0.4976, allocations: 11.98 kB / 0.7121 GB, free: 3.602 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/0.4977, allocations: 31.98 kB / 0.7121 GB, free: 3.57 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.991e-05/0.4978, allocations: 57.97 kB / 0.7122 GB, free: 3.516 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.4996, allocations: 1.155 MB / 0.7133 GB, free: 2.355 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2099/0.7095, allocations: 4.964 MB / 0.7181 GB, free: 178.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002537/0.7121, allocations: 0.8305 MB / 0.7189 GB, free: 178.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009794/0.7131, allocations: 422.8 kB / 0.7193 GB, free: 178 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001228/0.7144, allocations: 1.626 MB / 0.7209 GB, free: 176.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.958e-05/0.7144, allocations: 45.14 kB / 0.721 GB, free: 176.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=70): time 3.787e-06/0.7144, allocations: 0 / 0.721 GB, free: 176.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=82): time 0.01651/0.731, allocations: 4.142 MB / 0.725 GB, free: 174.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.731, allocations: 113.8 kB / 0.7251 GB, free: 174.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/0.7321, allocations: 0.656 MB / 0.7258 GB, free: 174.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001331/0.7322, allocations: 43.27 kB / 0.7258 GB, free: 174.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002507/0.7325, allocations: 385.6 kB / 0.7262 GB, free: 174 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002522/0.7328, allocations: 288 kB / 0.7265 GB, free: 173.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.75e-05/0.7328, allocations: 20.94 kB / 0.7265 GB, free: 173.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.733, allocations: 389.5 kB / 0.7268 GB, free: 173.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.734, allocations: 493.9 kB / 0.7273 GB, free: 173.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00114/0.7352, allocations: 0.7617 MB / 0.7281 GB, free: 172.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.7364, allocations: 0.584 MB / 0.7286 GB, free: 172.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.597e-06/0.7364, allocations: 1.406 kB / 0.7286 GB, free: 172.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003482/0.7399, allocations: 1.693 MB / 0.7303 GB, free: 171.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.7399, allocations: 7.906 kB / 0.7303 GB, free: 171.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.934e-05/0.7399, allocations: 11.23 kB / 0.7303 GB, free: 171.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007433/0.7474, allocations: 1.375 MB / 0.7316 GB, free: 171.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006827/0.7481, allocations: 152.6 kB / 0.7318 GB, free: 171.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002595/0.7507, allocations: 1.55 MB / 0.7333 GB, free: 170.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.7518, allocations: 93.05 kB / 0.7334 GB, free: 170.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001761/0.752, allocations: 52.84 kB / 0.7334 GB, free: 170.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 88 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 33} Notification: Performance of prepare postOptimizeDAE: time 0.0006059/0.7526, allocations: 300.3 kB / 0.7337 GB, free: 170.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002462/0.7529, allocations: 84.91 kB / 0.7338 GB, free: 170.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00364/0.7565, allocations: 1.697 MB / 0.7355 GB, free: 169.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-05/0.7566, allocations: 10.23 kB / 0.7355 GB, free: 169.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.7566, allocations: 0 / 0.7355 GB, free: 169.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.7566, allocations: 4.219 kB / 0.7355 GB, free: 169.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004686/0.7613, allocations: 2.646 MB / 0.7381 GB, free: 168.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.7613, allocations: 2.188 kB / 0.7381 GB, free: 168.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001329/0.7627, allocations: 260.2 kB / 0.7383 GB, free: 168.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001954/0.7646, allocations: 394 kB / 0.7387 GB, free: 168.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.862e-05/0.7647, allocations: 39.38 kB / 0.7387 GB, free: 168.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002115/0.7669, allocations: 2.27 MB / 0.7409 GB, free: 166.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.7669, allocations: 2.094 kB / 0.741 GB, free: 166.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004914/0.7718, allocations: 2.043 MB / 0.7429 GB, free: 165.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008292/0.7726, allocations: 295.3 kB / 0.7432 GB, free: 165.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003352/0.773, allocations: 23.88 kB / 0.7433 GB, free: 165.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/0.7742, allocations: 79.7 kB / 0.7433 GB, free: 165.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.7744, allocations: 57.27 kB / 0.7434 GB, free: 165.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/0.7745, allocations: 61 kB / 0.7434 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0006471/0.7752, allocations: 482.6 kB / 0.7439 GB, free: 165 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7752, allocations: 0 / 0.7439 GB, free: 165 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002134/0.7773, allocations: 0.672 MB / 0.7446 GB, free: 164.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002104/0.7794, allocations: 0.7963 MB / 0.7453 GB, free: 164.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002382/0.7818, allocations: 1.245 MB / 0.7465 GB, free: 164 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.7819, allocations: 3.938 kB / 0.7466 GB, free: 164 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.7834, allocations: 0.7057 MB / 0.7472 GB, free: 163.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002208/0.7856, allocations: 484.6 kB / 0.7477 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004098/0.7897, allocations: 2.567 MB / 0.7502 GB, free: 161.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004389/0.7901, allocations: 1.034 MB / 0.7512 GB, free: 160.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/0.7904, allocations: 101.8 kB / 0.7513 GB, free: 160.9 MB / 0.5105 GB Notification: Performance of SimCode: time 5.21e-07/0.7905, allocations: 0 / 0.7513 GB, free: 160.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.02981/0.8203, allocations: 28.08 MB / 0.7787 GB, free: 133.6 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Air/MoistAir/MoistAir.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches