Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001103, allocations: 95.47 kB / 16.96 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 178.4 kB / 17.84 MB, free: 5.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.538/1.538, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000502/0.0005023, allocations: 16 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09775/0.09827, allocations: 47.59 MB / 328.5 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.278/0.3763, allocations: 60.66 MB / 389.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007501/0.3839, allocations: 5.104 MB / 394.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007504/0.3847, allocations: 4.5 kB / 394.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.3859, allocations: 239.1 kB / 394.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001498/0.3874, allocations: 499.9 kB / 394.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01668/0.4041, allocations: 5.191 MB / 400.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003072/0.4072, allocations: 1.916 MB / 402.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005072/0.4077, allocations: 155.9 kB / 402.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001416/0.4092, allocations: 0.5238 MB / 402.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001325/0.4105, allocations: 0.56 MB / 403.3 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002381/0.4108, allocations: 37.12 kB / 403.3 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02042/0.4312, allocations: 8.506 MB / 411.8 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007661/0.432, allocations: 278.2 kB / 412.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006336/0.4326, allocations: 172 kB / 412.3 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008739/0.4414, allocations: 3.826 MB / 416.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4414, allocations: 3.469 kB / 416.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4414, allocations: 4 kB / 416.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.968e-05/0.4415, allocations: 0 / 416.1 MB, free: 6.98 MB / 318.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.004306/0.4458, allocations: 1.405 MB / 417.5 MB, free: 6.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.4459, allocations: 9.375 kB / 417.5 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003613/0.4462, allocations: 113 kB / 417.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004709/0.4467, allocations: 84.14 kB / 417.7 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007577/0.4475, allocations: 427.1 kB / 418.1 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.571e-05/0.4475, allocations: 51.86 kB / 418.2 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.4477, allocations: 61.28 kB / 418.2 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.4495, allocations: 0.8008 MB / 419 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.478e-05/0.4496, allocations: 16.05 kB / 419.1 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.69e-05/0.4496, allocations: 27.28 kB / 419.1 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.4497, allocations: 12.28 kB / 419.1 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.4515, allocations: 1.025 MB / 420.1 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01624/0.4677, allocations: 12.81 MB / 432.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001823/0.4696, allocations: 0.7519 MB / 433.7 MB, free: 6.367 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005832/0.4702, allocations: 405.2 kB / 434.1 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01482/0.4851, allocations: 12.3 MB / 446.4 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.736e-05/0.4852, allocations: 56.2 kB / 446.4 MB, free: 7.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=78): time 2.425e-06/0.4852, allocations: 4 kB / 446.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=88): time 0.01013/0.4953, allocations: 3.413 MB / 449.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.4954, allocations: 64.34 kB / 449.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005107/0.496, allocations: 350.9 kB / 450.3 MB, free: 4.516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000114/0.4961, allocations: 45.95 kB / 450.3 MB, free: 4.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.4963, allocations: 247.1 kB / 450.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002592/0.4966, allocations: 303.5 kB / 450.8 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.186e-05/0.4966, allocations: 16.56 kB / 450.9 MB, free: 4.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4968, allocations: 365.2 kB / 451.2 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006017/0.4974, allocations: 373.4 kB / 451.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009441/0.4984, allocations: 485.9 kB / 452 MB, free: 3.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009005/0.4993, allocations: 444.5 kB / 452.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4993, allocations: 0 / 452.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002612/0.5019, allocations: 1.106 MB / 453.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.5019, allocations: 4 kB / 453.6 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.502, allocations: 4 kB / 453.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009138/0.5029, allocations: 171.5 kB / 453.8 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000746/0.5036, allocations: 195.7 kB / 454 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003016/0.5067, allocations: 3.905 MB / 457.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006935/0.5074, allocations: 67.89 kB / 457.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.5075, allocations: 43.98 kB / 458 MB, free: 13.27 MB / 366.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.0004519/0.508, allocations: 233.6 kB / 458.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004256/0.5084, allocations: 59.44 kB / 458.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002671/0.5111, allocations: 1.284 MB / 459.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.5111, allocations: 8 kB / 459.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.5111, allocations: 4 kB / 459.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001909/0.513, allocations: 1.32 MB / 460.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003944/0.517, allocations: 1.975 MB / 462.8 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.517, allocations: 0 / 462.8 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007168/0.5178, allocations: 163.8 kB / 463 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001809/0.5196, allocations: 297.3 kB / 463.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.198e-05/0.5197, allocations: 27.98 kB / 463.3 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000875/0.5206, allocations: 1.293 MB / 464.6 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5206, allocations: 192 / 464.6 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002801/0.5234, allocations: 1.424 MB / 466 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.5238, allocations: 132.6 kB / 466.2 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.5239, allocations: 20 kB / 466.2 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006545/0.5246, allocations: 55.98 kB / 466.2 MB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.137e-05/0.5247, allocations: 56.92 kB / 466.3 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001229/0.5248, allocations: 43.97 kB / 466.3 MB, free: 4.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003596/0.5252, allocations: 283 kB / 466.6 MB, free: 4.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5252, allocations: 2.516 kB / 466.6 MB, free: 4.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.005448/0.5306, allocations: 1.382 MB / 468 MB, free: 2.914 MB / 366.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.01146/0.5421, allocations: 3.463 MB / 471.5 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002695/0.5449, allocations: 1.144 MB / 472.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.5449, allocations: 0 / 472.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.546, allocations: 495.8 kB / 473.1 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/0.5482, allocations: 374.2 kB / 473.5 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.5597, allocations: 4.956 MB / 478.4 MB, free: 8.488 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006011/0.5603, allocations: 0.9128 MB / 479.3 MB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001014/0.5614, allocations: 205.2 kB / 479.5 MB, free: 7.344 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005218/0.5619, allocations: 227.3 kB / 479.8 MB, free: 7.121 MB / 382.1 MB Notification: Performance of SimCode: time 2.334e-06/0.5619, allocations: 4 kB / 479.8 MB, free: 7.117 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/0.6632, allocations: 56.81 MB / 0.524 GB, free: 14.21 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002117/0.6635, allocations: 246.2 kB / 0.5242 GB, free: 13.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.173/4.837, allocations: 0 / 0.5242 GB, free: 13.88 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2.fmu > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat does not exist to compare? outputFormat=mat