Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_4_1_0-beta_om_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.001659/0.001659, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001933/0.001933, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.476/1.476, allocations: 227.7 MB / 247.1 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 65.2 kB / 307.3 MB, free: 420 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1108, allocations: 50.55 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.2726/0.3834, allocations: 65.72 MB / 423.6 MB, free: 8.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01126/0.3947, allocations: 5.465 MB / 429 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004775/0.3953, allocations: 4 kB / 429.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.3965, allocations: 357.9 kB / 429.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001078/0.3976, allocations: 0.5049 MB / 429.9 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02081/0.4184, allocations: 7.429 MB / 437.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002063/0.4205, allocations: 1.551 MB / 438.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003533/0.4208, allocations: 217.7 kB / 439.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.4219, allocations: 0.6191 MB / 439.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007918/0.4227, allocations: 0.5645 MB / 440.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.4228, allocations: 84 kB / 440.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02026/0.4431, allocations: 10.06 MB / 450.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006898/0.4438, allocations: 319.2 kB / 450.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008279/0.4447, allocations: 442.4 kB / 451.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01472/0.4594, allocations: 5.945 MB / 457.1 MB, free: 7.824 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.4595, allocations: 7.984 kB / 457.1 MB, free: 7.816 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.4595, allocations: 0 / 457.1 MB, free: 7.816 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.4595, allocations: 3.938 kB / 457.1 MB, free: 7.812 MB / 366.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.003851/0.4633, allocations: 1.56 MB / 458.7 MB, free: 6.203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.4634, allocations: 12.03 kB / 458.7 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001491/0.4636, allocations: 106.5 kB / 458.8 MB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004457/0.464, allocations: 85.55 kB / 458.9 MB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006522/0.4647, allocations: 440.8 kB / 459.3 MB, free: 5.527 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.979e-05/0.4647, allocations: 49.31 kB / 459.4 MB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.4649, allocations: 67.89 kB / 459.4 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.4667, allocations: 0.8068 MB / 460.2 MB, free: 4.598 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.676e-05/0.4667, allocations: 11.94 kB / 460.3 MB, free: 4.586 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.26e-05/0.4668, allocations: 28 kB / 460.3 MB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.602e-05/0.4668, allocations: 12 kB / 460.3 MB, free: 4.547 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001968/0.4688, allocations: 1.02 MB / 461.3 MB, free: 3.527 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0189/0.4877, allocations: 12.79 MB / 474.1 MB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001838/0.4896, allocations: 0.7412 MB / 474.8 MB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006291/0.4902, allocations: 410.6 kB / 475.2 MB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01601/0.5062, allocations: 12.24 MB / 487.5 MB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.891e-05/0.5063, allocations: 47.58 kB / 487.5 MB, free: 4.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.435e-06/0.5063, allocations: 3.938 kB / 487.5 MB, free: 4.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=88): time 0.00985/0.5162, allocations: 3.378 MB / 490.9 MB, free: 1.289 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.5163, allocations: 64.41 kB / 491 MB, free: 1.211 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004468/0.5167, allocations: 360.4 kB / 491.3 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.414e-05/0.5168, allocations: 41.7 kB / 491.4 MB, free: 0.8047 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000194/0.517, allocations: 236.8 kB / 491.6 MB, free: 0.5664 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000278/0.5173, allocations: 311.4 kB / 491.9 MB, free: 264 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002455/0.5176, allocations: 162.6 kB / 492.1 MB, free: 96 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.5178, allocations: 362.7 kB / 492.4 MB, free: 15.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006103/0.5184, allocations: 373.8 kB / 492.8 MB, free: 15.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009426/0.5193, allocations: 496.2 kB / 493.3 MB, free: 14.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001783/0.5211, allocations: 0.8982 MB / 494.2 MB, free: 13.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.5211, allocations: 0 / 494.2 MB, free: 13.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002663/0.5238, allocations: 1.121 MB / 495.3 MB, free: 12.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.5238, allocations: 11.94 kB / 495.3 MB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.5239, allocations: 4 kB / 495.3 MB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008697/0.5247, allocations: 171.5 kB / 495.5 MB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007528/0.5255, allocations: 179.8 kB / 495.6 MB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003431/0.5289, allocations: 4.116 MB / 499.8 MB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004631/0.5294, allocations: 20.03 kB / 499.8 MB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.5295, allocations: 44.23 kB / 499.8 MB, free: 7.898 MB / 414.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 (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004067/0.53, allocations: 225.6 kB / 0.4883 GB, free: 7.668 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004204/0.5304, allocations: 63.34 kB / 0.4884 GB, free: 7.605 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002522/0.5329, allocations: 1.281 MB / 0.4896 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.5329, allocations: 12 kB / 0.4897 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.533, allocations: 0 / 0.4897 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001957/0.5349, allocations: 1.324 MB / 0.4909 GB, free: 4.824 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003366/0.5383, allocations: 1.967 MB / 0.4929 GB, free: 2.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.5383, allocations: 0 / 0.4929 GB, free: 2.789 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000689/0.539, allocations: 171.7 kB / 0.493 GB, free: 2.621 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001748/0.5408, allocations: 289.3 kB / 0.4933 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.458e-05/0.5409, allocations: 31.97 kB / 0.4933 GB, free: 2.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009485/0.5418, allocations: 1.293 MB / 0.4946 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.5418, allocations: 0 / 0.4946 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002782/0.5446, allocations: 1.417 MB / 0.496 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002032/0.5448, allocations: 128.6 kB / 0.4961 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.5449, allocations: 19.98 kB / 0.4961 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005117/0.5455, allocations: 27.98 kB / 0.4961 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.5456, allocations: 56.92 kB / 0.4962 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.627e-05/0.5457, allocations: 43.97 kB / 0.4962 GB, free: 15.23 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003275/0.546, allocations: 287 kB / 0.4965 GB, free: 14.95 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.546, allocations: 0 / 0.4965 GB, free: 14.95 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003865/0.5499, allocations: 1.409 MB / 0.4979 GB, free: 13.54 MB / 430.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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0094/0.5593, allocations: 3.597 MB / 0.5014 GB, free: 9.906 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003148/0.5625, allocations: 1.269 MB / 0.5026 GB, free: 8.602 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/0.5625, allocations: 0.5625 kB / 0.5026 GB, free: 8.602 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009839/0.5635, allocations: 499.2 kB / 0.5031 GB, free: 8.109 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002006/0.5655, allocations: 395 kB / 0.5035 GB, free: 7.734 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.5791, allocations: 7.169 MB / 0.5105 GB, free: 400 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005937/0.5797, allocations: 0.9128 MB / 0.5114 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008785/0.5806, allocations: 205.2 kB / 0.5116 GB, free: 15.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003862/0.581, allocations: 227.3 kB / 0.5118 GB, free: 15.03 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.581, allocations: 0 / 0.5118 GB, free: 15.03 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2729/0.8539, allocations: 56.88 MB / 0.5674 GB, free: 124.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/14.87, allocations: 3.984 kB / 0.5674 GB, free: 124.1 MB / 446.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Media_Examples_ReferenceAir_MoistAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Media_Examples_ReferenceAir_MoistAir2.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1)