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.0009492/0.0009493, allocations: 96.02 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 191.5 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003287, allocations: 12 kB / 306.8 MB, free: 1.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.121, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.2652/0.3863, allocations: 60.6 MB / 418.9 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007378/0.3937, allocations: 5.104 MB / 424 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008198/0.3946, allocations: 2.594 kB / 424 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009171/0.3955, allocations: 240.8 kB / 424.2 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009644/0.3965, allocations: 490.6 kB / 424.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01678/0.4133, allocations: 5.47 MB / 430.2 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002034/0.4153, allocations: 1.91 MB / 432.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002541/0.4156, allocations: 147.9 kB / 432.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007382/0.4163, allocations: 0.5216 MB / 432.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006469/0.417, allocations: 0.5606 MB / 433.3 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.386e-05/0.4171, allocations: 40 kB / 433.4 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01542/0.4325, allocations: 8.618 MB / 442 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004792/0.433, allocations: 275.2 kB / 442.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003358/0.4334, allocations: 173.4 kB / 442.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007431/0.4408, allocations: 3.863 MB / 446.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4409, allocations: 4 kB / 446.3 MB, free: 3.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4409, allocations: 3.938 kB / 446.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.4409, allocations: 0 / 446.3 MB, free: 3.934 MB / 350.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.003136/0.444, allocations: 1.421 MB / 447.7 MB, free: 2.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.4441, allocations: 15.97 kB / 447.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.4442, allocations: 102.5 kB / 447.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003521/0.4445, allocations: 87.19 kB / 447.9 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005218/0.4451, allocations: 425.1 kB / 448.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.538e-05/0.4451, allocations: 49.31 kB / 448.4 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.575e-05/0.4452, allocations: 60 kB / 448.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.4468, allocations: 0.8068 MB / 449.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/0.4469, allocations: 3.906 kB / 449.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.313e-05/0.4469, allocations: 28 kB / 449.3 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.447, allocations: 16 kB / 449.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.4487, allocations: 1.024 MB / 450.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01522/0.4639, allocations: 12.82 MB / 463.1 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.4655, allocations: 0.7581 MB / 463.9 MB, free: 84 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005335/0.4661, allocations: 409.1 kB / 464.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01295/0.479, allocations: 12.3 MB / 476.6 MB, free: 1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.942e-05/0.4791, allocations: 43.22 kB / 476.6 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.465e-06/0.4791, allocations: 4 kB / 476.6 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of matching and sorting (n=88): time 0.008802/0.4879, allocations: 3.424 MB / 480.1 MB, free: 13.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.488, allocations: 60.41 kB / 480.1 MB, free: 13.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003722/0.4884, allocations: 348.5 kB / 480.5 MB, free: 13.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.46e-05/0.4885, allocations: 49.7 kB / 480.5 MB, free: 12.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.4886, allocations: 236.6 kB / 480.7 MB, free: 12.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/0.4888, allocations: 303.6 kB / 481 MB, free: 12.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.881e-05/0.4889, allocations: 20 kB / 481.1 MB, free: 12.4 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.489, allocations: 358.8 kB / 481.4 MB, free: 12.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005482/0.4896, allocations: 373.8 kB / 481.8 MB, free: 11.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008137/0.4904, allocations: 488.2 kB / 482.2 MB, free: 11.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008369/0.4912, allocations: 442.8 kB / 482.7 MB, free: 10.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4913, allocations: 0 / 482.7 MB, free: 10.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002384/0.4936, allocations: 1.117 MB / 483.8 MB, free: 9.598 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.4937, allocations: 4 kB / 483.8 MB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.4937, allocations: 7.953 kB / 483.8 MB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007347/0.4944, allocations: 167.5 kB / 484 MB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006805/0.4951, allocations: 187.8 kB / 484.2 MB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002697/0.4978, allocations: 3.912 MB / 488.1 MB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004981/0.4984, allocations: 67.91 kB / 488.1 MB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.176e-05/0.4985, allocations: 47.92 kB / 488.2 MB, free: 4.891 MB / 398.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.0003479/0.4988, allocations: 230.7 kB / 488.4 MB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003186/0.4991, allocations: 59.44 kB / 488.5 MB, free: 4.598 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002262/0.5014, allocations: 1.28 MB / 489.7 MB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.5014, allocations: 11.95 kB / 489.8 MB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.5014, allocations: 4 kB / 489.8 MB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001675/0.5031, allocations: 1.316 MB / 491.1 MB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002923/0.506, allocations: 1.983 MB / 493.1 MB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.5061, allocations: 0 / 493.1 MB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006742/0.5067, allocations: 163.8 kB / 493.2 MB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001644/0.5084, allocations: 297.2 kB / 493.5 MB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.034e-05/0.5085, allocations: 31.98 kB / 493.5 MB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007137/0.5092, allocations: 1.289 MB / 494.8 MB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5092, allocations: 8 kB / 494.8 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002308/0.5115, allocations: 1.405 MB / 496.2 MB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001658/0.5117, allocations: 136.6 kB / 496.4 MB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.409e-05/0.5118, allocations: 23.94 kB / 496.4 MB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005168/0.5123, allocations: 55.81 kB / 496.4 MB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.232e-05/0.5124, allocations: 60.86 kB / 496.5 MB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.188e-05/0.5125, allocations: 39.97 kB / 496.5 MB, free: 12.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002917/0.5128, allocations: 283 kB / 496.8 MB, free: 11.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5128, allocations: 0 / 496.8 MB, free: 11.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003542/0.5164, allocations: 1.398 MB / 498.2 MB, free: 10.5 MB / 414.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.007759/0.5241, allocations: 3.463 MB / 0.4899 GB, free: 7.008 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002025/0.5262, allocations: 1.152 MB / 0.4911 GB, free: 5.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.5262, allocations: 0 / 0.4911 GB, free: 5.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008282/0.527, allocations: 488 kB / 0.4915 GB, free: 5.344 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001748/0.5288, allocations: 373.9 kB / 0.4919 GB, free: 4.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008377/0.5372, allocations: 4.957 MB / 0.4967 GB, free: 15.92 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.5377, allocations: 0.9128 MB / 0.4976 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007734/0.5385, allocations: 209.2 kB / 0.4978 GB, free: 14.78 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003426/0.5388, allocations: 227.3 kB / 0.498 GB, free: 14.55 MB / 430.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5388, allocations: 0 / 0.498 GB, free: 14.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2358/0.7746, allocations: 55.59 MB / 0.5523 GB, free: 126.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001284/0.7748, allocations: 242.3 kB / 0.5525 GB, free: 126 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.964/4.739, allocations: 3.938 kB / 0.5525 GB, free: 126 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