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.004911/0.004911, allocations: 101.9 kB / 15.73 MB, free: 6.062 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.001183/0.001183, allocations: 192.2 kB / 16.67 MB, free: 5.973 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08377/0.08377, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 67.83 kB / 424.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08949/0.09066, allocations: 53.61 MB / 478.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterVaporization): time 0.008056/0.09875, allocations: 6.536 MB / 484.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01595/0.1147, allocations: 14.56 MB / 499.4 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000894/0.1157, allocations: 19.94 kB / 499.4 MB, free: 1.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.1168, allocations: 349.5 kB / 499.8 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003614/0.1205, allocations: 1.113 MB / 0.4891 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005523/0.126, allocations: 1.961 MB / 0.491 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002187/0.1282, allocations: 1.607 MB / 0.4926 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001506/0.1297, allocations: 0.9703 MB / 0.4936 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001282/0.1311, allocations: 0.7636 MB / 0.4943 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001459/0.1325, allocations: 0.8369 MB / 0.4951 GB, free: 9.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004216/0.133, allocations: 148 kB / 0.4953 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004993/0.138, allocations: 1.463 MB / 0.4967 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004937/0.1385, allocations: 343 kB / 0.497 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001198/0.1397, allocations: 0.7428 MB / 0.4977 GB, free: 6.719 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007329/0.147, allocations: 3.121 MB / 0.5008 GB, free: 3.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.1471, allocations: 4 kB / 0.5008 GB, free: 3.582 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1471, allocations: 0 / 0.5008 GB, free: 3.582 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.357e-05/0.1472, allocations: 0 / 0.5008 GB, free: 3.582 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.003829/0.151, allocations: 1.888 MB / 0.5026 GB, free: 1.637 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.151, allocations: 15.97 kB / 0.5027 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002699/0.1513, allocations: 182.3 kB / 0.5028 GB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001415/0.1528, allocations: 319.7 kB / 0.5031 GB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.154, allocations: 0.6807 MB / 0.5038 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.636e-05/0.1541, allocations: 106.9 kB / 0.5039 GB, free: 304 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002202/0.1543, allocations: 128.1 kB / 0.504 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.249/0.4033, allocations: 1.516 MB / 0.5055 GB, free: 34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.742e-05/0.4034, allocations: 1.172 kB / 0.5055 GB, free: 34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/0.4035, allocations: 51.5 kB / 0.5056 GB, free: 34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.215e-05/0.4036, allocations: 31.16 kB / 0.5056 GB, free: 34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003273/0.4068, allocations: 1.857 MB / 0.5074 GB, free: 33.66 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.007693/0.4145, allocations: 4.632 MB / 0.5119 GB, free: 31.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002143/0.4167, allocations: 1.34 MB / 0.5132 GB, free: 30.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008371/0.4176, allocations: 0.5335 MB / 0.5137 GB, free: 30.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006891/0.4245, allocations: 4.591 MB / 0.5182 GB, free: 26.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.4245, allocations: 45.86 kB / 0.5183 GB, free: 26.87 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003931/0.4249, allocations: 85.84 kB / 0.5184 GB, free: 26.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=82): time 2.695e-06/0.4249, allocations: 0 / 0.5184 GB, free: 26.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=100): time 0.01977/0.4447, allocations: 4.343 MB / 0.5226 GB, free: 25.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.4448, allocations: 67.14 kB / 0.5227 GB, free: 25.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009795/0.4458, allocations: 0.59 MB / 0.5232 GB, free: 24.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001648/0.446, allocations: 42.3 kB / 0.5233 GB, free: 24.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000319/0.4463, allocations: 0.5949 MB / 0.5239 GB, free: 24.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002965/0.4466, allocations: 368.6 kB / 0.5242 GB, free: 24.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003409/0.447, allocations: 235.4 kB / 0.5244 GB, free: 24.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.4471, allocations: 396.8 kB / 0.5248 GB, free: 23.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006935/0.4478, allocations: 414.1 kB / 0.5252 GB, free: 23.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008808/0.4487, allocations: 0.7742 MB / 0.526 GB, free: 22.94 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.02421/0.4729, allocations: 4.546 MB / 0.5304 GB, free: 20.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.4729, allocations: 2.75 kB / 0.5304 GB, free: 20.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.005262/0.4782, allocations: 1.781 MB / 0.5321 GB, free: 19.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.895e-05/0.4783, allocations: 12.16 kB / 0.5322 GB, free: 19.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.4783, allocations: 15.78 kB / 0.5322 GB, free: 19.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003518/0.4818, allocations: 482.6 kB / 0.5326 GB, free: 19.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009665/0.4828, allocations: 280.7 kB / 0.5329 GB, free: 19.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006103/0.4889, allocations: 4.399 MB / 0.5372 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009691/0.4899, allocations: 40 kB / 0.5372 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.49, allocations: 71.97 kB / 0.5373 GB, free: 15.37 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.0005063/0.4905, allocations: 279.7 kB / 0.5376 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.4907, allocations: 91.39 kB / 0.5377 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005963/0.4967, allocations: 1.755 MB / 0.5394 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.4967, allocations: 8 kB / 0.5394 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.4967, allocations: 7.938 kB / 0.5394 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.049e-05/0.4968, allocations: 7.609 kB / 0.5394 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007306/0.5041, allocations: 2.945 MB / 0.5423 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.5041, allocations: 4 kB / 0.5423 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006812/0.5048, allocations: 196.1 kB / 0.5425 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004374/0.5092, allocations: 0.5409 MB / 0.543 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.5093, allocations: 35.98 kB / 0.543 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00653/0.5159, allocations: 5.685 MB / 0.5486 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/0.5159, allocations: 3.938 kB / 0.5486 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006289/0.5222, allocations: 2.32 MB / 0.5508 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000297/0.5225, allocations: 160.5 kB / 0.551 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.5227, allocations: 31.09 kB / 0.551 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005043/0.5232, allocations: 24 kB / 0.551 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.5234, allocations: 108.7 kB / 0.5512 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.345e-05/0.5235, allocations: 43.98 kB / 0.5512 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004753/0.524, allocations: 387.1 kB / 0.5516 GB, free: 180 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.524, allocations: 4 kB / 0.5516 GB, free: 176 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.002106/0.5261, allocations: 0.6002 MB / 0.5522 GB, free: 15.57 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.008404/0.5346, allocations: 3.395 MB / 0.5555 GB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002634/0.5372, allocations: 1.452 MB / 0.5569 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.5373, allocations: 4 kB / 0.5569 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.5388, allocations: 1.006 MB / 0.5579 GB, free: 9.664 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.5403, allocations: 212.3 kB / 0.5581 GB, free: 9.461 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02174/0.562, allocations: 9.556 MB / 0.5674 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008867/0.563, allocations: 1.069 MB / 0.5685 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009054/0.5639, allocations: 232.2 kB / 0.5687 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007568/0.5647, allocations: 0.5046 MB / 0.5692 GB, free: 13.56 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5647, allocations: 0 / 0.5692 GB, free: 13.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07678/0.6415, allocations: 31.82 MB / 0.6002 GB, free: 13.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.12/15.76, allocations: 14.19 kB / 0.6003 GB, free: 13.98 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.WaterVaporization_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.04 Chemical_Chemical_Examples_WaterVaporization.fmu > Chemical_Chemical.Examples.WaterVaporization.pipe 2>&1)