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: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009476/0.0009476, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.199/1.199, allocations: 226.5 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007794/0.0007794, allocations: 95.58 kB / 296.7 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002018/0.0002018, allocations: 11.94 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1774, allocations: 51.28 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.03365/0.2111, allocations: 46.82 MB / 454.9 MB, free: 12.74 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004577/0.2157, allocations: 4.849 MB / 459.8 MB, free: 7.875 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.2159, allocations: 7.938 kB / 459.8 MB, free: 7.867 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005588/0.2165, allocations: 195 kB / 460 MB, free: 7.676 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004954/0.217, allocations: 346.2 kB / 460.3 MB, free: 7.336 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01269/0.2297, allocations: 5.601 MB / 465.9 MB, free: 1.746 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001213/0.2309, allocations: 1.325 MB / 467.3 MB, free: 428 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.2311, allocations: 111.1 kB / 467.4 MB, free: 312 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007838/0.239, allocations: 6.182 MB / 473.5 MB, free: 10.11 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00043/0.2394, allocations: 402.6 kB / 473.9 MB, free: 9.719 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.872e-05/0.2395, allocations: 28 kB / 474 MB, free: 9.691 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01402/0.2535, allocations: 9.747 MB / 483.7 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002499/0.2538, allocations: 199.5 kB / 483.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003371/0.2541, allocations: 284.7 kB / 484.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00531/0.2595, allocations: 3.77 MB / 488 MB, free: 11.67 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2595, allocations: 0 / 488 MB, free: 11.67 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2595, allocations: 0 / 488 MB, free: 11.67 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.2595, allocations: 0 / 488 MB, free: 11.67 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.00243/0.2619, allocations: 1.258 MB / 489.2 MB, free: 10.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.262, allocations: 12.03 kB / 489.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.391e-05/0.2621, allocations: 82.53 kB / 489.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002774/0.2624, allocations: 59.42 kB / 489.4 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004104/0.2628, allocations: 370.1 kB / 489.7 MB, free: 9.805 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.2628, allocations: 29 kB / 489.8 MB, free: 9.777 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.2629, allocations: 44 kB / 489.8 MB, free: 9.734 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.264, allocations: 0.5843 MB / 490.4 MB, free: 9.145 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.2641, allocations: 3.906 kB / 490.4 MB, free: 9.141 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.038e-05/0.2641, allocations: 20 kB / 490.4 MB, free: 9.121 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.2641, allocations: 12 kB / 490.4 MB, free: 9.109 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.2653, allocations: 0.7378 MB / 491.2 MB, free: 8.371 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01371/0.2791, allocations: 12.02 MB / 0.4914 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.2802, allocations: 0.5275 MB / 0.4919 GB, free: 9.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003342/0.2805, allocations: 257.4 kB / 0.4921 GB, free: 9.496 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1542/0.4347, allocations: 11.94 MB / 0.5038 GB, free: 92.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.4348, allocations: 42.19 kB / 0.5038 GB, free: 92.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.575e-06/0.4348, allocations: 0 / 0.5038 GB, free: 92.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.005121/0.4399, allocations: 2.133 MB / 0.5059 GB, free: 91.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.071e-05/0.44, allocations: 58.5 kB / 0.506 GB, free: 91.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002951/0.4403, allocations: 321.2 kB / 0.5063 GB, free: 91.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.4403, allocations: 37.55 kB / 0.5063 GB, free: 91.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.247e-05/0.4404, allocations: 199.3 kB / 0.5065 GB, free: 91.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.411e-05/0.4405, allocations: 191.1 kB / 0.5067 GB, free: 91.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.4405, allocations: 10.31 kB / 0.5067 GB, free: 91.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.121e-05/0.4406, allocations: 348.8 kB / 0.507 GB, free: 90.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003429/0.4409, allocations: 237.6 kB / 0.5073 GB, free: 90.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.4415, allocations: 344 kB / 0.5076 GB, free: 90.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009321/0.4424, allocations: 0.5929 MB / 0.5082 GB, free: 90.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4424, allocations: 1.594 kB / 0.5082 GB, free: 90.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001396/0.4438, allocations: 0.7526 MB / 0.5089 GB, free: 89.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.4439, allocations: 3.875 kB / 0.5089 GB, free: 89.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.4439, allocations: 3.969 kB / 0.5089 GB, free: 89.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003864/0.4443, allocations: 104.8 kB / 0.509 GB, free: 89.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004325/0.4447, allocations: 125.1 kB / 0.5091 GB, free: 89.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/0.4462, allocations: 3.276 MB / 0.5123 GB, free: 86.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.4465, allocations: 43.58 kB / 0.5124 GB, free: 86.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.882e-05/0.4466, allocations: 31.08 kB / 0.5124 GB, free: 86.46 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.0001822/0.4468, allocations: 197.4 kB / 0.5126 GB, free: 86.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002256/0.447, allocations: 41.2 kB / 0.5126 GB, free: 86.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001199/0.4482, allocations: 0.8217 MB / 0.5134 GB, free: 85.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.4482, allocations: 7.938 kB / 0.5134 GB, free: 85.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.4483, allocations: 3.938 kB / 0.5134 GB, free: 85.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008779/0.4491, allocations: 0.7626 MB / 0.5142 GB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001643/0.4508, allocations: 1.304 MB / 0.5155 GB, free: 84.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.4508, allocations: 1.031 kB / 0.5155 GB, free: 84.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004417/0.4513, allocations: 105.2 kB / 0.5156 GB, free: 84.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008332/0.4521, allocations: 146.6 kB / 0.5157 GB, free: 84.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.495e-05/0.4521, allocations: 18.81 kB / 0.5157 GB, free: 84.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002332/0.4524, allocations: 0.6411 MB / 0.5163 GB, free: 84.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4524, allocations: 3.609 kB / 0.5163 GB, free: 84.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.4537, allocations: 0.9139 MB / 0.5172 GB, free: 83.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.78e-05/0.4538, allocations: 121.1 kB / 0.5174 GB, free: 83.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.832e-05/0.4538, allocations: 13.09 kB / 0.5174 GB, free: 83.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003925/0.4542, allocations: 37.27 kB / 0.5174 GB, free: 83.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.088e-05/0.4543, allocations: 41.78 kB / 0.5174 GB, free: 83.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.002e-05/0.4544, allocations: 36.45 kB / 0.5175 GB, free: 83.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002026/0.4546, allocations: 253.1 kB / 0.5177 GB, free: 83.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4546, allocations: 0 / 0.5177 GB, free: 83.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002634/0.4572, allocations: 1.317 MB / 0.519 GB, free: 83.14 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.005436/0.4627, allocations: 3.03 MB / 0.522 GB, free: 81.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001062/0.4638, allocations: 0.8038 MB / 0.5227 GB, free: 80.42 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4638, allocations: 3.938 kB / 0.5228 GB, free: 80.42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004152/0.4642, allocations: 287.2 kB / 0.523 GB, free: 80.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.4654, allocations: 261.2 kB / 0.5233 GB, free: 79.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004403/0.4699, allocations: 3.601 MB / 0.5268 GB, free: 76.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001932/0.4701, allocations: 0.8329 MB / 0.5276 GB, free: 75.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000243/0.4703, allocations: 167.4 kB / 0.5278 GB, free: 75.23 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4703, allocations: 0 / 0.5278 GB, free: 75.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.619/7.089, allocations: 33.97 MB / 0.5609 GB, free: 41.23 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir1.fmu > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins1/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