Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Phosphate.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.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1158/0.1158, allocations: 15.26 MB / 27.82 MB, free: 5.395 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 184.5 kB / 32.7 MB, free: 0.5156 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 221.3 MB / 258.8 MB, free: 76 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008213/0.0008213, allocations: 98.42 kB / 314 MB, free: 15.79 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.907e-05/2.914e-05, allocations: 7.938 kB / 376.6 MB, free: 1.352 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.31, allocations: 54.6 MB / 431.2 MB, free: 50.11 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1228/0.4328, allocations: 100.2 MB / 0.5189 GB, free: 15.13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.4331, allocations: 71.95 kB / 0.519 GB, free: 15.06 MB / 394.7 MB [/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 solution.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. 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 H.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$H. 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 H3PO4.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$H3PO4. 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 H2PO4.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$H2PO4. 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 HPO4.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$HPO4. 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 PO4.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$PO4. 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.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. 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 OH.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$OH. 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: Performance of FrontEnd - DAE generated: time 0.4545/0.8876, allocations: 83.6 MB / 0.6006 GB, free: 89.38 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.8877, allocations: 0 / 0.6006 GB, free: 89.38 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.608e-05/0.8878, allocations: 39.78 kB / 0.6006 GB, free: 89.38 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.005576/0.8933, allocations: 2.466 MB / 0.6031 GB, free: 88.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.8934, allocations: 8.688 kB / 0.6031 GB, free: 88.18 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003559/0.8938, allocations: 260.1 kB / 0.6033 GB, free: 88.13 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002038/0.8958, allocations: 0.559 MB / 0.6039 GB, free: 88 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002988/0.8988, allocations: 1.479 MB / 0.6053 GB, free: 87.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/0.899, allocations: 255.5 kB / 0.6055 GB, free: 87.47 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000337/0.8994, allocations: 191.2 kB / 0.6057 GB, free: 87.47 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005319/0.9047, allocations: 3.579 MB / 0.6092 GB, free: 87.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.855e-05/0.9048, allocations: 3.344 kB / 0.6092 GB, free: 87.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001836/0.9049, allocations: 71.31 kB / 0.6093 GB, free: 87.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.08e-05/0.905, allocations: 44.81 kB / 0.6093 GB, free: 87.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005775/0.9108, allocations: 5.102 MB / 0.6143 GB, free: 87.3 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01521/0.926, allocations: 11.05 MB / 0.6251 GB, free: 82.99 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007005/0.933, allocations: 5.776 MB / 0.6307 GB, free: 80.47 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002126/0.9352, allocations: 1.968 MB / 0.6327 GB, free: 79.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00077/0.936, allocations: 0.5702 MB / 0.6332 GB, free: 79.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.936, allocations: 63.25 kB / 0.6333 GB, free: 79.4 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00196/0.938, allocations: 322 kB / 0.6336 GB, free: 79.26 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 8.997e-06/0.938, allocations: 0 / 0.6336 GB, free: 79.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=312): time 0.044/0.982, allocations: 16.2 MB / 0.6494 GB, free: 73.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007716/0.9898, allocations: 4.611 MB / 0.6539 GB, free: 70.36 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/0.9915, allocations: 1.085 MB / 0.655 GB, free: 69.88 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006101/0.9921, allocations: 78.73 kB / 0.6551 GB, free: 69.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004179/0.9925, allocations: 0.7327 MB / 0.6558 GB, free: 69.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001155/0.9937, allocations: 1.035 MB / 0.6568 GB, free: 68.19 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003991/0.9941, allocations: 56 kB / 0.6568 GB, free: 68.14 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.9943, allocations: 408.6 kB / 0.6572 GB, free: 67.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002803/0.9971, allocations: 2.228 MB / 0.6594 GB, free: 65.74 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00299/1, allocations: 2.518 MB / 0.6619 GB, free: 63.39 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003184/1.003, allocations: 2.406 MB / 0.6642 GB, free: 61.27 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/1.003, allocations: 3.938 kB / 0.6642 GB, free: 61.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=353) (initialization): time 0.01524/1.019, allocations: 6.469 MB / 0.6705 GB, free: 55.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/1.019, allocations: 4 kB / 0.6705 GB, free: 55.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/1.019, allocations: 8.844 kB / 0.6705 GB, free: 55.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00451/1.023, allocations: 1.156 MB / 0.6717 GB, free: 54.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002833/1.026, allocations: 0.5964 MB / 0.6723 GB, free: 54.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005409/1.031, allocations: 4.637 MB / 0.6768 GB, free: 49.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004324/1.036, allocations: 381 kB / 0.6771 GB, free: 49.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006131/1.036, allocations: 152.8 kB / 0.6773 GB, free: 49.41 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (316): * Single equations (assignments): 310 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 14,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007279/1.037, allocations: 244.4 kB / 0.6775 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005983/1.038, allocations: 205.5 kB / 0.6777 GB, free: 48.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02034/1.058, allocations: 7.822 MB / 0.6854 GB, free: 42.25 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01888/1.077, allocations: 7.019 MB / 0.6922 GB, free: 35.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/1.077, allocations: 4 kB / 0.6922 GB, free: 35.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.283e-05/1.077, allocations: 19.94 kB / 0.6922 GB, free: 35.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03019/1.107, allocations: 16.83 MB / 0.7087 GB, free: 18.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.404e-05/1.107, allocations: 12 kB / 0.7087 GB, free: 18.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002501/1.11, allocations: 0.5558 MB / 0.7092 GB, free: 17.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008993/1.119, allocations: 2.346 MB / 0.7115 GB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006548/1.12, allocations: 123.9 kB / 0.7116 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01288/1.133, allocations: 9.263 MB / 0.7207 GB, free: 5.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005636/1.138, allocations: 2.729 MB / 0.7234 GB, free: 2.656 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02617/1.164, allocations: 11.62 MB / 0.7347 GB, free: 6.309 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009136/1.165, allocations: 326.3 kB / 0.735 GB, free: 5.969 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008844/1.166, allocations: 76.86 kB / 0.7351 GB, free: 5.895 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003259/1.17, allocations: 239.5 kB / 0.7353 GB, free: 5.66 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009605/1.171, allocations: 337.3 kB / 0.7356 GB, free: 5.332 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004819/1.171, allocations: 144.2 kB / 0.7358 GB, free: 5.191 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001288/1.172, allocations: 0.8432 MB / 0.7366 GB, free: 4.344 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.3e-07/1.172, allocations: 0 / 0.7366 GB, free: 4.344 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006128/1.179, allocations: 1.929 MB / 0.7385 GB, free: 2.414 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 53 * Number of states: 8 ($STATESET1.x[8],$STATESET1.x[7],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (305): * Single equations (assignments): 301 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 14,9 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03223/1.211, allocations: 17.03 MB / 0.7551 GB, free: 1.055 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.2498/1.461, allocations: 5.651 MB / 0.7606 GB, free: 112.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/1.461, allocations: 2.125 kB / 0.7606 GB, free: 112.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007688/1.468, allocations: 3.754 MB / 0.7643 GB, free: 112.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003666/1.472, allocations: 0.5985 MB / 0.7649 GB, free: 112.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01329/1.485, allocations: 5.999 MB / 0.7707 GB, free: 110.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001639/1.487, allocations: 1.658 MB / 0.7724 GB, free: 110.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002577/1.49, allocations: 485.4 kB / 0.7728 GB, free: 110 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001798/1.492, allocations: 1.058 MB / 0.7739 GB, free: 110 MB / 474.7 MB Notification: Performance of SimCode: time 1.122e-06/1.492, allocations: 0 / 0.7739 GB, free: 110 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1312/1.623, allocations: 91.38 MB / 0.8631 GB, free: 60.29 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001415/1.623, allocations: 171.5 kB / 0.8633 GB, free: 60.06 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.953/6.576, allocations: 0 / 0.8633 GB, free: 60.06 MB / 474.7 MB (rm -f Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Phosphate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_Phosphate_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_Phosphate.fmu > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)