Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.WaterSublimation.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.WaterSublimation,fileNamePrefix="Chemical_Chemical_Examples_WaterSublimation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterSublimation,fileNamePrefix="Chemical_Chemical_Examples_WaterSublimation",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.00493/0.004931, allocations: 98.86 kB / 15.73 MB, free: 6.039 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.001195/0.001195, allocations: 202.1 kB / 16.68 MB, free: 5.965 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2393/0.2393, allocations: 15.33 MB / 305.9 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 59.91 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3219, allocations: 53.6 MB / 478.3 MB, free: 25.61 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterSublimation): time 0.03414/0.3561, allocations: 25.5 MB / 0.492 GB, free: 9.242 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01214/0.3682, allocations: 12.29 MB / 0.504 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001716/0.37, allocations: 15.94 kB / 0.504 GB, free: 12.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001089/0.3711, allocations: 277.8 kB / 0.5043 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004123/0.3752, allocations: 1.059 MB / 0.5053 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00521/0.3805, allocations: 1.554 MB / 0.5068 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002317/0.3828, allocations: 1.403 MB / 0.5082 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001092/0.3839, allocations: 0.8364 MB / 0.509 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008154/0.3847, allocations: 0.6739 MB / 0.5097 GB, free: 7.039 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008723/0.3856, allocations: 0.7279 MB / 0.5104 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001684/0.3858, allocations: 128 kB / 0.5105 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003797/0.3896, allocations: 1.19 MB / 0.5117 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002679/0.3899, allocations: 291 kB / 0.512 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006426/0.3905, allocations: 0.6456 MB / 0.5126 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005212/0.3958, allocations: 2.626 MB / 0.5152 GB, free: 1.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.3958, allocations: 7.984 kB / 0.5152 GB, free: 1.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3958, allocations: 0 / 0.5152 GB, free: 1.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.142e-05/0.3958, allocations: 0 / 0.5152 GB, free: 1.41 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: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.002748/0.3986, allocations: 1.666 MB / 0.5168 GB, free: 15.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.3986, allocations: 8.031 kB / 0.5168 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001844/0.3988, allocations: 173.3 kB / 0.517 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00106/0.3999, allocations: 261.1 kB / 0.5172 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008844/0.4008, allocations: 0.6185 MB / 0.5178 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.315e-05/0.4009, allocations: 86.62 kB / 0.5179 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/0.401, allocations: 124.3 kB / 0.518 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/0.4029, allocations: 1.198 MB / 0.5192 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.403, allocations: 0 / 0.5192 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.4031, allocations: 48 kB / 0.5192 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.4031, allocations: 31.94 kB / 0.5193 GB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001971/0.4051, allocations: 1.324 MB / 0.5206 GB, free: 11.73 MB / 398.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.005601/0.4107, allocations: 4.023 MB / 0.5245 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.4121, allocations: 0.9717 MB / 0.5254 GB, free: 6.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00057/0.4127, allocations: 387.7 kB / 0.5258 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005133/0.4179, allocations: 3.971 MB / 0.5297 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.4179, allocations: 43.06 kB / 0.5297 GB, free: 1.605 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 1.863e-06/0.4179, allocations: 0 / 0.5297 GB, free: 1.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.004963/0.4229, allocations: 2.118 MB / 0.5318 GB, free: 15.44 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.423, allocations: 67.92 kB / 0.5319 GB, free: 15.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006097/0.4236, allocations: 0.5264 MB / 0.5324 GB, free: 14.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.707e-05/0.4236, allocations: 37.7 kB / 0.5324 GB, free: 14.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003457/0.424, allocations: 0.5426 MB / 0.5329 GB, free: 14.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/0.4242, allocations: 273.7 kB / 0.5332 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002424/0.4244, allocations: 190.9 kB / 0.5334 GB, free: 13.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.4246, allocations: 382.8 kB / 0.5337 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004064/0.425, allocations: 230.2 kB / 0.534 GB, free: 13.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000653/0.4257, allocations: 0.5408 MB / 0.5345 GB, free: 12.48 MB / 414.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: solid.temperature = solid.temperature_start (gas.temperature_start = solid.temperature_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.006058/0.4318, allocations: 2.121 MB / 0.5366 GB, free: 10.2 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.4318, allocations: 4 kB / 0.5366 GB, free: 10.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00169/0.4335, allocations: 0.9696 MB / 0.5375 GB, free: 9.211 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.4335, allocations: 8 kB / 0.5375 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.4336, allocations: 12.91 kB / 0.5375 GB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002567/0.4338, allocations: 76.81 kB / 0.5376 GB, free: 9.113 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006857/0.4345, allocations: 235.6 kB / 0.5378 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001605/0.4361, allocations: 1.727 MB / 0.5395 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004724/0.4366, allocations: 28 kB / 0.5395 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.853e-05/0.4367, allocations: 55.98 kB / 0.5396 GB, free: 6.93 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: solid.temperature = solid.temperature_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (119): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000402/0.4371, allocations: 253.4 kB / 0.5398 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.4372, allocations: 91.47 kB / 0.5399 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/0.4388, allocations: 0.8379 MB / 0.5407 GB, free: 5.734 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.4389, allocations: 7.938 kB / 0.5408 GB, free: 5.727 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.4389, allocations: 7.984 kB / 0.5408 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.4389, allocations: 0 / 0.5408 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002596/0.4415, allocations: 1.746 MB / 0.5425 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.4415, allocations: 8 kB / 0.5425 GB, free: 3.863 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006705/0.4422, allocations: 188.1 kB / 0.5427 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002014/0.4424, allocations: 60.77 kB / 0.5427 GB, free: 3.617 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.93e-05/0.4424, allocations: 31.98 kB / 0.5427 GB, free: 3.586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001576/0.444, allocations: 1.708 MB / 0.5444 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.444, allocations: 3.938 kB / 0.5444 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001925/0.446, allocations: 1.182 MB / 0.5456 GB, free: 0.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/0.4462, allocations: 148.7 kB / 0.5457 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.962e-05/0.4463, allocations: 16 kB / 0.5457 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003228/0.4466, allocations: 23.98 kB / 0.5457 GB, free: 304 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.4468, allocations: 76.45 kB / 0.5458 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.937e-05/0.4468, allocations: 39.98 kB / 0.5459 GB, free: 184 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004334/0.4473, allocations: 346.8 kB / 0.5462 GB, free: 15.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4473, allocations: 0 / 0.5462 GB, free: 15.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001401/0.4487, allocations: 455 kB / 0.5466 GB, free: 15.4 MB / 430.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,H2O_solid.molarEnthalpy,H2O_solid.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 (80): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003094/0.4518, allocations: 2.153 MB / 0.5487 GB, free: 13.19 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.4533, allocations: 0.8133 MB / 0.5495 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.4533, allocations: 4 kB / 0.5495 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006872/0.454, allocations: 486.1 kB / 0.55 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009647/0.455, allocations: 181.5 kB / 0.5502 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.4653, allocations: 6.743 MB / 0.5567 GB, free: 4.508 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007133/0.466, allocations: 1.013 MB / 0.5577 GB, free: 3.469 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006656/0.4667, allocations: 198 kB / 0.5579 GB, free: 3.273 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005767/0.4673, allocations: 439.2 kB / 0.5583 GB, free: 2.844 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4673, allocations: 0 / 0.5583 GB, free: 2.844 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05229/0.5196, allocations: 22.25 MB / 0.5801 GB, free: 12.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/12.05, allocations: 15.8 kB / 0.5801 GB, free: 12.69 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.WaterSublimation.pipe ; mkfifo Chemical_Chemical.Examples.WaterSublimation.pipe ; head -c 1048576 < Chemical_Chemical.Examples.WaterSublimation.pipe >> ../files/Chemical_Chemical.Examples.WaterSublimation.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.WaterSublimation_res.csv --start-time 0 --stop-time 49.7 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01988 Chemical_Chemical_Examples_WaterSublimation.fmu > Chemical_Chemical.Examples.WaterSublimation.pipe 2>&1)