Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001372/0.001372, allocations: 93.8 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002112/0.002112, allocations: 200.2 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002451/0.0002452, allocations: 4 kB / 306.7 MB, free: 1.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1083, allocations: 51.5 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.269/0.3774, allocations: 49.86 MB / 408.1 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006431/0.3839, allocations: 4.378 MB / 412.4 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005921/0.3845, allocations: 4.312 kB / 412.4 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009592/0.3855, allocations: 272.9 kB / 412.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000931/0.3864, allocations: 343 kB / 413 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01616/0.4026, allocations: 5.232 MB / 418.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001558/0.4041, allocations: 0.8395 MB / 419.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003317/0.4045, allocations: 150.8 kB / 419.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009383/0.4054, allocations: 0.503 MB / 419.8 MB, free: 14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006188/0.4061, allocations: 367.5 kB / 420.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.595e-05/0.4062, allocations: 36 kB / 420.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01703/0.4232, allocations: 8.517 MB / 428.7 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004067/0.4236, allocations: 255.4 kB / 428.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003303/0.424, allocations: 173.4 kB / 429.1 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007652/0.4316, allocations: 3.708 MB / 432.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.4317, allocations: 0 / 432.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.4317, allocations: 0 / 432.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.4317, allocations: 0 / 432.8 MB, free: 0.9492 MB / 334.1 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.003143/0.4348, allocations: 1.366 MB / 434.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.4349, allocations: 12.03 kB / 434.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001311/0.435, allocations: 106.5 kB / 434.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004008/0.4354, allocations: 87.19 kB / 434.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006214/0.4361, allocations: 437 kB / 434.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.186e-05/0.4361, allocations: 49.31 kB / 434.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.093e-05/0.4362, allocations: 64 kB / 434.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.4378, allocations: 0.7951 MB / 435.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.4378, allocations: 11.83 kB / 435.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.246e-05/0.4379, allocations: 28 kB / 435.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.4379, allocations: 16 kB / 435.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.4397, allocations: 1.02 MB / 436.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0168/0.4565, allocations: 12.84 MB / 449.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.4582, allocations: 0.7529 MB / 450.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01461/0.4728, allocations: 12.3 MB / 462.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.331e-05/0.473, allocations: 47.59 kB / 462.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.495e-06/0.473, allocations: 0 / 462.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=88): time 0.01054/0.4835, allocations: 3.426 MB / 466.1 MB, free: 10.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.4836, allocations: 64.36 kB / 466.2 MB, free: 10.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000578/0.4842, allocations: 348.5 kB / 466.5 MB, free: 10.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001311/0.4843, allocations: 45.7 kB / 466.6 MB, free: 10.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002194/0.4846, allocations: 240.6 kB / 466.8 MB, free: 10.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/0.4849, allocations: 307.6 kB / 467.1 MB, free: 9.859 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.952e-05/0.4849, allocations: 16 kB / 467.1 MB, free: 9.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.4852, allocations: 366.8 kB / 467.5 MB, free: 9.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006334/0.4858, allocations: 373.7 kB / 467.8 MB, free: 9.109 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008944/0.4867, allocations: 480.2 kB / 468.3 MB, free: 8.609 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009094/0.4876, allocations: 438.9 kB / 468.7 MB, free: 8.184 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.4876, allocations: 0 / 468.7 MB, free: 8.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002469/0.4901, allocations: 1.113 MB / 469.9 MB, free: 7.051 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.4902, allocations: 4 kB / 469.9 MB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.4902, allocations: 4 kB / 469.9 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008071/0.491, allocations: 175.4 kB / 470 MB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007604/0.4918, allocations: 183.7 kB / 470.2 MB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002685/0.4945, allocations: 3.924 MB / 474.1 MB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005901/0.4951, allocations: 67.86 kB / 474.2 MB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/0.4952, allocations: 47.97 kB / 474.3 MB, free: 2.332 MB / 382.1 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 (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.000398/0.4956, allocations: 229.6 kB / 474.5 MB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000405/0.496, allocations: 59.44 kB / 474.5 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002302/0.4983, allocations: 1.288 MB / 475.8 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.4983, allocations: 8 kB / 475.8 MB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.4984, allocations: 0 / 475.8 MB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001702/0.5001, allocations: 1.324 MB / 477.2 MB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0032/0.5033, allocations: 1.979 MB / 479.1 MB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.463e-06/0.5033, allocations: 3.953 kB / 479.1 MB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006853/0.504, allocations: 159.8 kB / 479.3 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/0.5057, allocations: 301.3 kB / 479.6 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-05/0.5058, allocations: 31.98 kB / 479.6 MB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000729/0.5066, allocations: 1.289 MB / 480.9 MB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5066, allocations: 4.031 kB / 480.9 MB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002656/0.5092, allocations: 1.428 MB / 482.3 MB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/0.5095, allocations: 144.7 kB / 482.5 MB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.5096, allocations: 24 kB / 482.5 MB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000625/0.5103, allocations: 59.73 kB / 482.6 MB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.817e-05/0.5104, allocations: 60.86 kB / 482.6 MB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.5105, allocations: 47.95 kB / 482.7 MB, free: 9.555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003165/0.5108, allocations: 275 kB / 482.9 MB, free: 9.289 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5108, allocations: 0 / 482.9 MB, free: 9.289 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004126/0.5149, allocations: 1.402 MB / 484.3 MB, free: 7.887 MB / 398.1 MB 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 (84): * Single equations (assignments): 82 * 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.00879/0.5237, allocations: 3.616 MB / 488 MB, free: 4.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002176/0.5259, allocations: 1.16 MB / 489.1 MB, free: 3.035 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.526, allocations: 0 / 489.1 MB, free: 3.035 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008481/0.5268, allocations: 487.2 kB / 489.6 MB, free: 2.559 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.5288, allocations: 365.9 kB / 490 MB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.5394, allocations: 6.544 MB / 496.5 MB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006681/0.5401, allocations: 0.9245 MB / 497.4 MB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009602/0.5411, allocations: 205.1 kB / 497.6 MB, free: 10.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003939/0.5415, allocations: 227.4 kB / 497.8 MB, free: 10.18 MB / 414.1 MB Notification: Performance of SimCode: time 1.233e-06/0.5415, allocations: 0 / 497.8 MB, free: 10.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.274/0.8155, allocations: 55.71 MB / 0.5406 GB, free: 149.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.8157, allocations: 249.5 kB / 0.5408 GB, free: 149.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.177/4.992, allocations: 0 / 0.5408 GB, free: 149.5 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir2.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat does not exist to compare? outputFormat=mat