Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.WaterVaporization.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Chemical.Examples.WaterVaporization,fileNamePrefix="Chemical_Chemical_Examples_WaterVaporization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterVaporization,fileNamePrefix="Chemical_Chemical_Examples_WaterVaporization",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.004579/0.004579, allocations: 105.5 kB / 15.74 MB, free: 6.02 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.00118/0.00118, allocations: 193.6 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09448/0.09448, allocations: 15.3 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 63.91 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.112, allocations: 53.62 MB / 478.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterVaporization): time 0.009088/0.1211, allocations: 6.525 MB / 484.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02039/0.1416, allocations: 14.57 MB / 499.4 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001181/0.1428, allocations: 15.88 kB / 499.4 MB, free: 1.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001418/0.1443, allocations: 349.5 kB / 499.8 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004108/0.1484, allocations: 1.101 MB / 0.4891 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006697/0.1552, allocations: 1.942 MB / 0.491 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003148/0.1583, allocations: 1.607 MB / 0.4926 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001916/0.1603, allocations: 0.978 MB / 0.4935 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001568/0.1619, allocations: 0.7558 MB / 0.4943 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001754/0.1636, allocations: 0.8369 MB / 0.4951 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005616/0.1642, allocations: 152 kB / 0.4952 GB, free: 9.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005944/0.1702, allocations: 1.467 MB / 0.4967 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000684/0.1709, allocations: 335 kB / 0.497 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001562/0.1725, allocations: 0.7467 MB / 0.4977 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008397/0.1809, allocations: 3.124 MB / 0.5008 GB, free: 3.609 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.181, allocations: 0 / 0.5008 GB, free: 3.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.181, allocations: 0 / 0.5008 GB, free: 3.609 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.675e-05/0.1811, allocations: 4 kB / 0.5008 GB, free: 3.605 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 325 * Number of variables: 325 Notification: Performance of Generate backend data structure: time 0.004782/0.1859, allocations: 1.884 MB / 0.5026 GB, free: 1.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.1859, allocations: 8.031 kB / 0.5026 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003855/0.1863, allocations: 186.3 kB / 0.5028 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001571/0.1879, allocations: 323.7 kB / 0.5031 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.1894, allocations: 0.6806 MB / 0.5038 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.1895, allocations: 98.94 kB / 0.5039 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003231/0.1899, allocations: 128.1 kB / 0.504 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2486/0.4385, allocations: 1.518 MB / 0.5055 GB, free: 33.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.221e-05/0.4385, allocations: 0.5938 kB / 0.5055 GB, free: 33.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001256/0.4387, allocations: 51.34 kB / 0.5055 GB, free: 33.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.34e-05/0.4387, allocations: 31.78 kB / 0.5056 GB, free: 33.97 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003055/0.4418, allocations: 1.862 MB / 0.5074 GB, free: 33.65 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006851/0.4486, allocations: 4.631 MB / 0.5119 GB, free: 31.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001983/0.4506, allocations: 1.339 MB / 0.5132 GB, free: 30.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008319/0.4515, allocations: 0.5302 MB / 0.5137 GB, free: 30.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006259/0.4578, allocations: 4.593 MB / 0.5182 GB, free: 26.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.4578, allocations: 43.62 kB / 0.5182 GB, free: 26.85 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003638/0.4582, allocations: 88.64 kB / 0.5183 GB, free: 26.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=82): time 3.556e-06/0.4582, allocations: 0 / 0.5183 GB, free: 26.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=100): time 0.01911/0.4773, allocations: 4.347 MB / 0.5226 GB, free: 25.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.4774, allocations: 62.19 kB / 0.5226 GB, free: 25.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008063/0.4782, allocations: 0.5891 MB / 0.5232 GB, free: 24.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.4784, allocations: 40.8 kB / 0.5233 GB, free: 24.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002752/0.4786, allocations: 0.5965 MB / 0.5238 GB, free: 24.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002344/0.4789, allocations: 366.8 kB / 0.5242 GB, free: 24.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003057/0.4792, allocations: 236.5 kB / 0.5244 GB, free: 24.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.981e-05/0.4793, allocations: 392.9 kB / 0.5248 GB, free: 23.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006228/0.4799, allocations: 418.2 kB / 0.5252 GB, free: 23.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007906/0.4807, allocations: 0.7783 MB / 0.5259 GB, free: 22.91 MB / 382.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: gas.temperature = gas.temperature_start (liquid.temperature_start = gas.temperature_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.02315/0.5039, allocations: 4.537 MB / 0.5304 GB, free: 20.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.585e-06/0.5039, allocations: 4.125 kB / 0.5304 GB, free: 20.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.005009/0.5089, allocations: 1.785 MB / 0.5321 GB, free: 19.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.509, allocations: 12 kB / 0.5321 GB, free: 19.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.509, allocations: 18.31 kB / 0.5321 GB, free: 19.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003387/0.5124, allocations: 481.8 kB / 0.5326 GB, free: 19.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009217/0.5133, allocations: 287.4 kB / 0.5329 GB, free: 19.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005824/0.5192, allocations: 4.398 MB / 0.5372 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009559/0.5202, allocations: 40 kB / 0.5372 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.5203, allocations: 67.97 kB / 0.5373 GB, free: 15.43 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: gas.temperature = gas.temperature_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (143): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005239/0.5208, allocations: 277.5 kB / 0.5375 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.521, allocations: 91.39 kB / 0.5376 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005785/0.5268, allocations: 1.755 MB / 0.5393 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.5269, allocations: 19.92 kB / 0.5394 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.5269, allocations: 7.938 kB / 0.5394 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/0.5269, allocations: 3.984 kB / 0.5394 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007131/0.534, allocations: 2.938 MB / 0.5422 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.5341, allocations: 6.75 kB / 0.5423 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000637/0.5347, allocations: 196 kB / 0.5424 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004288/0.539, allocations: 0.541 MB / 0.543 GB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000149/0.5392, allocations: 39.98 kB / 0.543 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006207/0.5454, allocations: 5.684 MB / 0.5486 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.5454, allocations: 4.031 kB / 0.5486 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006312/0.5517, allocations: 2.318 MB / 0.5508 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003357/0.5521, allocations: 164.5 kB / 0.551 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.5522, allocations: 31.92 kB / 0.551 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004855/0.5527, allocations: 24 kB / 0.551 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002566/0.553, allocations: 100.8 kB / 0.5511 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.438e-05/0.5531, allocations: 47.97 kB / 0.5512 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003573/0.5534, allocations: 387.1 kB / 0.5515 GB, free: 228 kB / 382.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.5534, allocations: 0 / 0.5515 GB, free: 228 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001751/0.5552, allocations: 0.604 MB / 0.5521 GB, free: 15.62 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (H2O_gaseuous.logn,otherSubstances.logn,liquidWater.amountOfBonds,liquidWater.logn) * 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 (100): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008682/0.5639, allocations: 3.397 MB / 0.5555 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002637/0.5666, allocations: 1.436 MB / 0.5569 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.5666, allocations: 0 / 0.5569 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/0.5682, allocations: 1.013 MB / 0.5578 GB, free: 9.723 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.5694, allocations: 212.4 kB / 0.558 GB, free: 9.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01993/0.5894, allocations: 9.556 MB / 0.5674 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008016/0.5902, allocations: 1.069 MB / 0.5684 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008111/0.591, allocations: 236.2 kB / 0.5686 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006926/0.5917, allocations: 0.5007 MB / 0.5691 GB, free: 13.62 MB / 414.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5917, allocations: 0 / 0.5691 GB, free: 13.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07696/0.6687, allocations: 31.83 MB / 0.6002 GB, free: 14.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.25/15.92, allocations: 7.438 kB / 0.6002 GB, free: 14.03 MB / 446.1 MB (rm -f Chemical_Chemical.Examples.WaterVaporization.pipe ; mkfifo Chemical_Chemical.Examples.WaterVaporization.pipe ; head -c 1048576 < Chemical_Chemical.Examples.WaterVaporization.pipe >> ../files/Chemical_Chemical.Examples.WaterVaporization.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_WaterVaporization_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-08 Chemical_Chemical_Examples_WaterVaporization.fmu > Chemical_Chemical.Examples.WaterVaporization.pipe 2>&1)