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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07921/0.07921, allocations: 15.26 MB / 22.54 MB, free: 472 kB / 16.07 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 189.4 kB / 27.31 MB, free: 1.012 MB / 21.43 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.096/1.096, allocations: 221.4 MB / 253.3 MB, free: 10.21 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008909/0.0008909, allocations: 91.11 kB / 308.4 MB, free: 5.305 MB / 242.8 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1028/0.1038, allocations: 60.75 MB / 369.1 MB, free: 8.5 MB / 306.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.2879, allocations: 54.62 MB / 423.8 MB, free: 25.88 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.3941, allocations: 102.3 MB / 0.5138 GB, free: 3.371 MB / 386.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001677/0.3943, allocations: 67.97 kB / 0.5138 GB, free: 3.305 MB / 386.8 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H2O_gaseuous.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H2O_gaseuous. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System otherSubstances.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$otherSubstances. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H2O_solid.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H2O_solid. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System gas.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution$gas. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System solid.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution$solid. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. 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.2284/0.6227, allocations: 39.77 MB / 0.5527 GB, free: 54.97 MB / 386.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.6227, allocations: 12 kB / 0.5527 GB, free: 54.96 MB / 386.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/0.6238, allocations: 321.9 kB / 0.553 GB, free: 54.68 MB / 386.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/0.6251, allocations: 0.8353 MB / 0.5538 GB, free: 53.99 MB / 386.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.6251, allocations: 36 kB / 0.5538 GB, free: 53.96 MB / 386.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.6252, allocations: 71.84 kB / 0.5539 GB, free: 53.89 MB / 386.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002115/0.6274, allocations: 2.032 MB / 0.5559 GB, free: 52.59 MB / 386.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.6288, allocations: 1.22 MB / 0.5571 GB, free: 51.72 MB / 386.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.6289, allocations: 0 / 0.5571 GB, free: 51.72 MB / 386.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.527e-05/0.6289, allocations: 0 / 0.5571 GB, free: 51.72 MB / 386.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.629, allocations: 28 kB / 0.5571 GB, free: 51.69 MB / 386.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005608/0.6346, allocations: 5.015 MB / 0.562 GB, free: 47.74 MB / 386.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.6359, allocations: 1.415 MB / 0.5634 GB, free: 46.82 MB / 386.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005689/0.6365, allocations: 0.6337 MB / 0.564 GB, free: 46.44 MB / 386.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002738/0.6368, allocations: 247.4 kB / 0.5642 GB, free: 46.26 MB / 386.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.572e-05/0.6368, allocations: 45.97 kB / 0.5643 GB, free: 46.21 MB / 386.8 MB Notification: Performance of pre-optimization done (n=96): time 1.933e-06/0.6368, allocations: 0 / 0.5643 GB, free: 46.21 MB / 386.8 MB Notification: Performance of matching and sorting (n=118): time 0.009573/0.6464, allocations: 4.771 MB / 0.569 GB, free: 42.24 MB / 386.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.171e-05/0.6464, allocations: 68.34 kB / 0.569 GB, free: 42.16 MB / 386.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005531/0.647, allocations: 0.5427 MB / 0.5695 GB, free: 41.61 MB / 386.8 MB Notification: Performance of collectPreVariables (initialization): time 4.611e-05/0.647, allocations: 25.7 kB / 0.5696 GB, free: 41.58 MB / 386.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.6472, allocations: 403.8 kB / 0.57 GB, free: 41.18 MB / 386.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/0.6474, allocations: 394.1 kB / 0.5703 GB, free: 40.79 MB / 386.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.748e-05/0.6474, allocations: 0 / 0.5703 GB, free: 40.79 MB / 386.8 MB Notification: Performance of setup shared object (initialization): time 9.193e-05/0.6475, allocations: 402.7 kB / 0.5707 GB, free: 40.38 MB / 386.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.6481, allocations: 0.561 MB / 0.5713 GB, free: 39.82 MB / 386.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006315/0.6487, allocations: 0.7214 MB / 0.572 GB, free: 39.04 MB / 386.8 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 (solid.temperature_start = gas.temperature_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.00654/0.6553, allocations: 2.471 MB / 0.5744 GB, free: 36.56 MB / 386.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.6553, allocations: 0 / 0.5744 GB, free: 36.56 MB / 386.8 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00275/0.658, allocations: 1.765 MB / 0.5761 GB, free: 34.78 MB / 386.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.6581, allocations: 4 kB / 0.5761 GB, free: 34.77 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.6581, allocations: 16.02 kB / 0.5761 GB, free: 34.76 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004366/0.6585, allocations: 189.6 kB / 0.5763 GB, free: 34.57 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008273/0.6593, allocations: 231.7 kB / 0.5765 GB, free: 34.34 MB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001621/0.661, allocations: 2.824 MB / 0.5793 GB, free: 31.35 MB / 386.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006173/0.6616, allocations: 43.88 kB / 0.5793 GB, free: 31.31 MB / 386.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.826e-05/0.6617, allocations: 43.98 kB / 0.5794 GB, free: 31.27 MB / 386.8 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: gas.temperature = gas.temperature_start Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H2O_solid.z:DUMMY_STATE(unit = "1" protected = true ) "Charge number of ion" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H2O_gaseuous.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 126 * 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: 1 {(1,100.0%) 7} * Non-linear torn systems: 2 {1 4,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001745/0.6619, allocations: 135.4 kB / 0.5795 GB, free: 31.13 MB / 386.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.662, allocations: 94.78 kB / 0.5796 GB, free: 31.04 MB / 386.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003147/0.6652, allocations: 1.88 MB / 0.5814 GB, free: 29.14 MB / 386.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.6652, allocations: 15.91 kB / 0.5814 GB, free: 29.12 MB / 386.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.6652, allocations: 0 / 0.5814 GB, free: 29.12 MB / 386.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.6652, allocations: 3.984 kB / 0.5814 GB, free: 29.12 MB / 386.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00484/0.6701, allocations: 3.761 MB / 0.5851 GB, free: 25.27 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.6701, allocations: 4 kB / 0.5851 GB, free: 25.27 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007519/0.6708, allocations: 220.1 kB / 0.5853 GB, free: 25.05 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004083/0.6713, allocations: 182.5 kB / 0.5855 GB, free: 24.87 MB / 386.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.143e-05/0.6713, allocations: 19.98 kB / 0.5855 GB, free: 24.85 MB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001583/0.6729, allocations: 2.829 MB / 0.5883 GB, free: 21.86 MB / 386.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.6729, allocations: 7.938 kB / 0.5883 GB, free: 21.85 MB / 386.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003537/0.6765, allocations: 3.012 MB / 0.5912 GB, free: 18.67 MB / 386.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004375/0.6809, allocations: 4.29 MB / 0.5954 GB, free: 14.2 MB / 386.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002425/0.6811, allocations: 167.9 kB / 0.5956 GB, free: 14.02 MB / 386.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.6813, allocations: 11.94 kB / 0.5956 GB, free: 14.01 MB / 386.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005546/0.6818, allocations: 31.89 kB / 0.5956 GB, free: 13.98 MB / 386.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.682, allocations: 80.89 kB / 0.5957 GB, free: 13.9 MB / 386.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.893e-05/0.682, allocations: 39.98 kB / 0.5957 GB, free: 13.86 MB / 386.8 MB Notification: Performance of sort global known variables: time 0.0003867/0.6824, allocations: 427.1 kB / 0.5961 GB, free: 13.45 MB / 386.8 MB Notification: Performance of remove unused functions: time 0.001779/0.6842, allocations: 0.5386 MB / 0.5967 GB, free: 12.91 MB / 386.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (H2O_gaseuous.logn,otherSubstances.logn,solid.temperature,H2O_solid.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 115 * 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: 1 {(1,100.0%) 7} * Non-linear torn systems: 2 {1 4,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009018/0.6851, allocations: 0.6029 MB / 0.5973 GB, free: 12.33 MB / 386.8 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.6867, allocations: 1.509 MB / 0.5987 GB, free: 10.81 MB / 386.8 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6867, allocations: 7.938 kB / 0.5987 GB, free: 10.8 MB / 386.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0008345/0.6876, allocations: 0.8565 MB / 0.5996 GB, free: 9.938 MB / 386.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.6888, allocations: 293.4 kB / 0.5999 GB, free: 9.66 MB / 386.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002774/0.6916, allocations: 1.831 MB / 0.6016 GB, free: 7.746 MB / 386.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006747/0.6923, allocations: 1.231 MB / 0.6029 GB, free: 6.484 MB / 386.8 MB Notification: Performance of SimCode: time 2.71e-07/0.6923, allocations: 0 / 0.6029 GB, free: 6.484 MB / 386.8 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_WaterSublimation_fmu --startTime=0 --stopTime=49.7 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_WaterSublimation.fmu > Chemical_Chemical.Examples.WaterSublimation.pipe 2>&1)