Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir.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.Tests.MediaTestModels.Air.MoistAir,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Air_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Air_MoistAir",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.0008982/0.0008983, allocations: 98.95 kB / 16.95 MB, free: 6.453 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.001013/0.001013, allocations: 182 kB / 17.84 MB, free: 6.004 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.637/1.637, allocations: 205.4 MB / 224 MB, free: 13.15 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.0005233/0.0005237, allocations: 12 kB / 280.9 MB, free: 3.613 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1065, allocations: 47.57 MB / 328.5 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir): time 0.4128/0.5194, allocations: 169.7 MB / 498.2 MB, free: 220 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005694/0.5251, allocations: 4.44 MB / 0.4908 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000475/0.5257, allocations: 7.938 kB / 0.4908 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007168/0.5264, allocations: 171 kB / 0.491 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009078/0.5273, allocations: 358.1 kB / 0.4913 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007126/0.5344, allocations: 2.179 MB / 0.4935 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001856/0.5363, allocations: 1.387 MB / 0.4948 GB, free: 7.664 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002129/0.5365, allocations: 109.5 kB / 0.4949 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003074/0.5396, allocations: 1.202 MB / 0.4961 GB, free: 6.348 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005686/0.5402, allocations: 410.7 kB / 0.4965 GB, free: 5.945 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.115e-05/0.5403, allocations: 24 kB / 0.4965 GB, free: 5.922 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007051/0.5473, allocations: 3.491 MB / 0.4999 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003331/0.5477, allocations: 199.4 kB / 0.5001 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002828/0.548, allocations: 129.5 kB / 0.5002 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00376/0.5518, allocations: 1.886 MB / 0.5021 GB, free: 212 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.5518, allocations: 0 / 0.5021 GB, free: 212 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.5518, allocations: 0 / 0.5021 GB, free: 212 kB / 398.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.5518, allocations: 0 / 0.5021 GB, free: 212 kB / 398.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.002286/0.5541, allocations: 1.033 MB / 0.5031 GB, free: 15.12 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.5542, allocations: 16.03 kB / 0.5031 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.5543, allocations: 87.33 kB / 0.5032 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003365/0.5546, allocations: 63.38 kB / 0.5032 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004698/0.5551, allocations: 354.1 kB / 0.5036 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.979e-05/0.5552, allocations: 33 kB / 0.5036 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.326e-05/0.5552, allocations: 47.94 kB / 0.5036 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008766/0.5561, allocations: 0.4984 MB / 0.5041 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.5562, allocations: 0 / 0.5041 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.357e-05/0.5562, allocations: 16 kB / 0.5042 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.5562, allocations: 16.88 kB / 0.5042 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.5573, allocations: 0.605 MB / 0.5048 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003324/0.5606, allocations: 2.168 MB / 0.5069 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.5618, allocations: 0.5631 MB / 0.5074 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004004/0.5622, allocations: 254.1 kB / 0.5077 GB, free: 10.13 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000624/0.5629, allocations: 0.6931 MB / 0.5083 GB, free: 9.293 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.276e-05/0.5629, allocations: 48 kB / 0.5084 GB, free: 9.238 MB / 414.1 MB Notification: Performance of pre-optimization done (n=53): time 2.926e-06/0.5629, allocations: 0 / 0.5084 GB, free: 9.238 MB / 414.1 MB Notification: Performance of matching and sorting (n=65): time 0.01308/0.576, allocations: 3.801 MB / 0.5121 GB, free: 5.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.5761, allocations: 63.97 kB / 0.5122 GB, free: 5.266 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003329/0.5765, allocations: 294.7 kB / 0.5124 GB, free: 4.969 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.605e-05/0.5765, allocations: 37.7 kB / 0.5125 GB, free: 4.926 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.5767, allocations: 189.2 kB / 0.5127 GB, free: 4.738 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.5769, allocations: 228.7 kB / 0.5129 GB, free: 4.512 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-05/0.5769, allocations: 15.94 kB / 0.5129 GB, free: 4.496 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.5771, allocations: 346.8 kB / 0.5132 GB, free: 4.148 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006593/0.5778, allocations: 321.1 kB / 0.5135 GB, free: 3.836 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006928/0.5785, allocations: 392.2 kB / 0.5139 GB, free: 3.434 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007234/0.5792, allocations: 351 kB / 0.5142 GB, free: 3.094 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.5792, allocations: 3.938 kB / 0.5142 GB, free: 3.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002055/0.5813, allocations: 0.9795 MB / 0.5152 GB, free: 2.094 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.5813, allocations: 4 kB / 0.5152 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.5813, allocations: 0 / 0.5152 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001469/0.5828, allocations: 354.3 kB / 0.5155 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005384/0.5833, allocations: 123.8 kB / 0.5157 GB, free: 1.613 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003427/0.5868, allocations: 3.518 MB / 0.5191 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005923/0.5874, allocations: 63.88 kB / 0.5192 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-05/0.5875, allocations: 27.98 kB / 0.5192 GB, free: 13.72 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (68): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003158/0.5878, allocations: 193.7 kB / 0.5194 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.5879, allocations: 43.53 kB / 0.5194 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002402/0.5903, allocations: 1.04 MB / 0.5204 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.5903, allocations: 8 kB / 0.5204 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.5903, allocations: 7.953 kB / 0.5204 GB, free: 12.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002029/0.5924, allocations: 1.075 MB / 0.5215 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002928/0.5953, allocations: 1.725 MB / 0.5232 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.5953, allocations: 0 / 0.5232 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005208/0.5959, allocations: 111.9 kB / 0.5233 GB, free: 9.355 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001719/0.5976, allocations: 388.4 kB / 0.5237 GB, free: 8.973 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.796e-05/0.5977, allocations: 23.98 kB / 0.5237 GB, free: 8.949 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/0.599, allocations: 0.884 MB / 0.5245 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.599, allocations: 0 / 0.5245 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.6016, allocations: 1.368 MB / 0.5259 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.6018, allocations: 128.6 kB / 0.526 GB, free: 6.504 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.568e-05/0.6019, allocations: 19.98 kB / 0.526 GB, free: 6.484 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006001/0.6025, allocations: 55.95 kB / 0.5261 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.935e-05/0.6026, allocations: 40.5 kB / 0.5261 GB, free: 6.391 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.78e-05/0.6026, allocations: 36.47 kB / 0.5261 GB, free: 6.355 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002344/0.6029, allocations: 217.9 kB / 0.5264 GB, free: 6.141 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6029, allocations: 0 / 0.5264 GB, free: 6.141 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001367/0.6043, allocations: 455.6 kB / 0.5268 GB, free: 5.695 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (62): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004355/0.6086, allocations: 2.373 MB / 0.5291 GB, free: 3.289 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.6107, allocations: 0.9935 MB / 0.5301 GB, free: 2.273 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.6107, allocations: 0 / 0.5301 GB, free: 2.273 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008434/0.6115, allocations: 423.1 kB / 0.5305 GB, free: 1.859 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001458/0.613, allocations: 304.6 kB / 0.5308 GB, free: 1.562 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1763/0.7893, allocations: 3.796 MB / 0.5345 GB, free: 162.9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.7896, allocations: 0.8467 MB / 0.5353 GB, free: 162.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006645/0.7903, allocations: 132.7 kB / 0.5354 GB, free: 162.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000338/0.7907, allocations: 166.6 kB / 0.5356 GB, free: 162.2 MB / 430.1 MB Notification: Performance of SimCode: time 1.132e-06/0.7907, allocations: 0 / 0.5356 GB, free: 162.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06407/0.8547, allocations: 25.53 MB / 0.5605 GB, free: 147.6 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002255/0.855, allocations: 230 kB / 0.5607 GB, free: 147.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.772/3.627, allocations: 0 / 0.5607 GB, free: 147.4 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Air_MoistAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Air_MoistAir.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir_res.mat does not exist to compare? outputFormat=mat