Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.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.MoistAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001061/0.001061, allocations: 102 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001728/0.001728, allocations: 198.5 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002871/0.0002872, allocations: 7.984 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1261, allocations: 51.48 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.2611/0.3873, allocations: 39.16 MB / 397.3 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006634/0.3939, allocations: 4.104 MB / 401.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006827/0.3947, allocations: 2.188 kB / 401.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007886/0.3954, allocations: 191.3 kB / 401.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006587/0.3961, allocations: 244.1 kB / 401.9 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01728/0.4134, allocations: 5.059 MB / 406.9 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001131/0.4146, allocations: 0.5842 MB / 407.5 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.4148, allocations: 110.3 kB / 407.6 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008869/0.4237, allocations: 5.962 MB / 413.6 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003684/0.4241, allocations: 263.1 kB / 413.8 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.964e-05/0.4242, allocations: 28 kB / 413.9 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01652/0.4407, allocations: 8.423 MB / 422.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003444/0.4411, allocations: 171.6 kB / 422.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003681/0.4415, allocations: 133.5 kB / 422.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009086/0.4506, allocations: 3.434 MB / 426 MB, free: 7.715 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4506, allocations: 0 / 426 MB, free: 7.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.257e-06/0.4507, allocations: 0 / 426 MB, free: 7.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.4507, allocations: 0 / 426 MB, free: 7.715 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.004386/0.4551, allocations: 1.226 MB / 427.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.487e-05/0.4551, allocations: 8.031 kB / 427.3 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001497/0.4553, allocations: 86.52 kB / 427.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003798/0.4557, allocations: 59.42 kB / 427.4 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005899/0.4563, allocations: 362.2 kB / 427.8 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.4563, allocations: 33.62 kB / 427.8 MB, free: 5.855 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.911e-05/0.4564, allocations: 44 kB / 427.8 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.4579, allocations: 0.5726 MB / 428.4 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.4579, allocations: 4 kB / 428.4 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.606e-05/0.458, allocations: 16 kB / 428.4 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.458, allocations: 12 kB / 428.4 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.4593, allocations: 0.7417 MB / 429.2 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01592/0.4753, allocations: 12.03 MB / 441.2 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/0.4766, allocations: 0.5348 MB / 441.7 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01381/0.4904, allocations: 11.95 MB / 453.7 MB, free: 7.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.837e-05/0.4906, allocations: 39 kB / 453.7 MB, free: 7.523 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.204e-06/0.4906, allocations: 7.938 kB / 453.7 MB, free: 7.516 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.005772/0.4963, allocations: 2.135 MB / 455.9 MB, free: 5.285 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/0.4964, allocations: 59.97 kB / 455.9 MB, free: 5.215 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003413/0.4968, allocations: 314.9 kB / 456.2 MB, free: 4.895 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.161e-05/0.4968, allocations: 41.7 kB / 456.3 MB, free: 4.848 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.497, allocations: 208.3 kB / 456.5 MB, free: 4.641 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.4971, allocations: 189.2 kB / 456.7 MB, free: 4.453 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.837e-05/0.4972, allocations: 8 kB / 456.7 MB, free: 4.445 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.4973, allocations: 346.8 kB / 457 MB, free: 4.098 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004057/0.4977, allocations: 237 kB / 457.2 MB, free: 3.867 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005808/0.4983, allocations: 343.3 kB / 457.6 MB, free: 3.504 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005842/0.4989, allocations: 280.7 kB / 457.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4989, allocations: 0 / 457.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001788/0.5007, allocations: 0.7595 MB / 458.6 MB, free: 2.453 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.5008, allocations: 8 kB / 458.6 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.5008, allocations: 0 / 458.6 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005148/0.5013, allocations: 110.8 kB / 458.7 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004922/0.5018, allocations: 123.8 kB / 458.8 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002386/0.5042, allocations: 3.287 MB / 462.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003984/0.5046, allocations: 48.03 kB / 462.2 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.309e-05/0.5047, allocations: 31.98 kB / 462.2 MB, free: 14.55 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 (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.0002674/0.505, allocations: 193.6 kB / 462.4 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002902/0.5053, allocations: 43.53 kB / 462.4 MB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001565/0.5069, allocations: 0.8228 MB / 463.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.5069, allocations: 4 kB / 463.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.5069, allocations: 3.953 kB / 463.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001033/0.5079, allocations: 0.7635 MB / 464 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/0.51, allocations: 1.301 MB / 465.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.51, allocations: 7.891 kB / 465.3 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004282/0.5105, allocations: 99.88 kB / 465.4 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009828/0.5115, allocations: 148.7 kB / 465.6 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.066e-05/0.5115, allocations: 19.98 kB / 465.6 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003747/0.5119, allocations: 0.6368 MB / 466.2 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.5119, allocations: 8.031 kB / 466.3 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.5136, allocations: 0.9271 MB / 467.2 MB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.5138, allocations: 124.8 kB / 467.3 MB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.043e-05/0.5138, allocations: 19.98 kB / 467.3 MB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000428/0.5143, allocations: 35.92 kB / 467.4 MB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.886e-05/0.5144, allocations: 40.33 kB / 467.4 MB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.183e-05/0.5144, allocations: 27.97 kB / 467.4 MB, free: 9.082 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002748/0.5147, allocations: 257.9 kB / 467.7 MB, free: 8.824 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5147, allocations: 8 kB / 467.7 MB, free: 8.816 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003898/0.5186, allocations: 1.308 MB / 469 MB, free: 7.508 MB / 382.1 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.007818/0.5265, allocations: 3.071 MB / 472.1 MB, free: 4.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.5282, allocations: 0.8158 MB / 472.9 MB, free: 3.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.5282, allocations: 4.062 kB / 472.9 MB, free: 3.551 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005421/0.5288, allocations: 283.2 kB / 473.2 MB, free: 3.273 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/0.5302, allocations: 253.1 kB / 473.4 MB, free: 3.027 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008022/0.5382, allocations: 5.123 MB / 478.5 MB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.5387, allocations: 0.8446 MB / 479.4 MB, free: 12.92 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000669/0.5393, allocations: 148.3 kB / 479.5 MB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002384/0.5396, allocations: 155.4 kB / 479.7 MB, free: 12.62 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.5396, allocations: 0 / 479.7 MB, free: 12.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08227/0.6219, allocations: 49.78 MB / 0.517 GB, free: 11.01 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.6222, allocations: 243.3 kB / 0.5173 GB, free: 10.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.823/4.445, allocations: 0 / 0.5173 GB, free: 10.77 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir1.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat does not exist to compare? outputFormat=mat