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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002081/0.00208, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002782/0.002783, allocations: 198.2 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.865/2.865, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4006/0.4006, allocations: 15.33 MB / 305.7 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 63.91 kB / 370.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2127, allocations: 53.61 MB / 424.1 MB, free: 14.16 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.AcidBase.Phosphate): time 0.7623/0.9751, allocations: 28.3 MB / 452.4 MB, free: 39.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05155/1.027, allocations: 28.7 MB / 481.1 MB, free: 23.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002435/1.029, allocations: 23 kB / 481.1 MB, free: 23.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003941/1.033, allocations: 0.5709 MB / 481.6 MB, free: 23.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01538/1.049, allocations: 2.578 MB / 484.2 MB, free: 21.65 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02016/1.069, allocations: 3.505 MB / 487.7 MB, free: 19.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007825/1.077, allocations: 2.713 MB / 490.4 MB, free: 18.29 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00453/1.081, allocations: 1.625 MB / 492.1 MB, free: 17.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004754/1.086, allocations: 1.416 MB / 493.5 MB, free: 17.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006688/1.093, allocations: 1.601 MB / 495.1 MB, free: 16.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00194/1.095, allocations: 254.1 kB / 495.3 MB, free: 16.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02735/1.122, allocations: 3.149 MB / 498.5 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002409/1.125, allocations: 0.6097 MB / 499.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02102/1.146, allocations: 1.206 MB / 0.4886 GB, free: 14.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04068/1.187, allocations: 5.893 MB / 0.4943 GB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.235e-05/1.187, allocations: 0 / 0.4943 GB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.358e-06/1.187, allocations: 0.5625 kB / 0.4943 GB, free: 12.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001648/1.187, allocations: 0 / 0.4943 GB, free: 12.04 MB / 366.1 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.02481/1.212, allocations: 2.987 MB / 0.4972 GB, free: 9.793 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.523e-05/1.212, allocations: 12.03 kB / 0.4973 GB, free: 9.781 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001446/1.213, allocations: 261.9 kB / 0.4975 GB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008966/1.222, allocations: 470.7 kB / 0.498 GB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008301/1.231, allocations: 1.051 MB / 0.499 GB, free: 8.238 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003768/1.231, allocations: 261 kB / 0.4992 GB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001311/1.232, allocations: 189.7 kB / 0.4994 GB, free: 7.777 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01502/1.247, allocations: 2.512 MB / 0.5019 GB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001316/1.248, allocations: 0 / 0.5019 GB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009376/1.249, allocations: 72 kB / 0.5019 GB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.991e-05/1.249, allocations: 48 kB / 0.502 GB, free: 5.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01552/1.264, allocations: 3.194 MB / 0.5051 GB, free: 2.523 MB / 366.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.03891/1.303, allocations: 8.37 MB / 0.5133 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02312/1.326, allocations: 5.426 MB / 0.5186 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004583/1.331, allocations: 1.28 MB / 0.5198 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03522/1.366, allocations: 10.25 MB / 0.5298 GB, free: 7.688 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.676e-05/1.366, allocations: 51.86 kB / 0.5299 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002274/1.369, allocations: 230.4 kB / 0.5301 GB, free: 7.402 MB / 398.1 MB Notification: Performance of pre-optimization done (n=158): time 1.234e-05/1.369, allocations: 0 / 0.5301 GB, free: 7.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=187): time 0.08223/1.451, allocations: 7.555 MB / 0.5375 GB, free: 15.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.826e-05/1.451, allocations: 73.41 kB / 0.5375 GB, free: 15.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002566/1.454, allocations: 0.8973 MB / 0.5384 GB, free: 14.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006825/1.454, allocations: 57.7 kB / 0.5385 GB, free: 14.69 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001066/1.456, allocations: 0.7988 MB / 0.5393 GB, free: 13.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001455/1.457, allocations: 0.6392 MB / 0.5399 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001761/1.459, allocations: 415.7 kB / 0.5403 GB, free: 12.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/1.459, allocations: 305.1 kB / 0.5406 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002823/1.462, allocations: 0.789 MB / 0.5413 GB, free: 11.72 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003958/1.466, allocations: 1.371 MB / 0.5427 GB, free: 10.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007943/1.474, allocations: 2.36 MB / 0.545 GB, free: 7.477 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.144e-05/1.474, allocations: 4 kB / 0.545 GB, free: 7.473 MB / 414.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.02554/1.499, allocations: 3.391 MB / 0.5483 GB, free: 4.062 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.955e-05/1.5, allocations: 12.22 kB / 0.5483 GB, free: 4.051 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.876e-05/1.5, allocations: 20 kB / 0.5483 GB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007437/1.507, allocations: 0.8101 MB / 0.5491 GB, free: 3.211 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004553/1.512, allocations: 0.5187 MB / 0.5496 GB, free: 2.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/1.522, allocations: 3.898 MB / 0.5534 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003506/1.526, allocations: 75.92 kB / 0.5535 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007718/1.526, allocations: 123.9 kB / 0.5536 GB, free: 14.32 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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 (268): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001735/1.528, allocations: 402.7 kB / 0.554 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008069/1.529, allocations: 146.1 kB / 0.5541 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02357/1.553, allocations: 3.323 MB / 0.5574 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.564e-05/1.553, allocations: 20 kB / 0.5574 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-05/1.553, allocations: 7.938 kB / 0.5574 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001024/1.553, allocations: 15.95 kB / 0.5574 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02796/1.581, allocations: 5.23 MB / 0.5625 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.233e-05/1.581, allocations: 0 / 0.5625 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003554/1.584, allocations: 359.5 kB / 0.5629 GB, free: 4.734 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006263/1.591, allocations: 0.7983 MB / 0.5637 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005845/1.591, allocations: 67.95 kB / 0.5637 GB, free: 3.859 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01222/1.604, allocations: 3.795 MB / 0.5674 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/1.604, allocations: 3.938 kB / 0.5674 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02433/1.628, allocations: 4.227 MB / 0.5716 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007184/1.629, allocations: 215.1 kB / 0.5718 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006913/1.63, allocations: 32 kB / 0.5718 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00236/1.632, allocations: 39.98 kB / 0.5718 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009575/1.633, allocations: 197.7 kB / 0.572 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003978/1.633, allocations: 79.95 kB / 0.5721 GB, free: 10.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00149/1.635, allocations: 0.5742 MB / 0.5727 GB, free: 10.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/1.635, allocations: 0 / 0.5727 GB, free: 10.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007586/1.642, allocations: 1.179 MB / 0.5738 GB, free: 9.199 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (solution.temperature,H.logn,H3PO4.logn,H2PO4.logn,HPO4.logn,PO4.logn,H2O.logn,OH.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 (190): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03767/1.68, allocations: 6.016 MB / 0.5797 GB, free: 3.148 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0155/1.696, allocations: 2.812 MB / 0.5824 GB, free: 296 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.696, allocations: 0 / 0.5824 GB, free: 296 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006037/1.702, allocations: 1.498 MB / 0.5839 GB, free: 14.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004248/1.706, allocations: 314.9 kB / 0.5842 GB, free: 14.44 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4423/2.149, allocations: 16.71 MB / 0.6005 GB, free: 133.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00173/2.15, allocations: 1.321 MB / 0.6018 GB, free: 132.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00405/2.155, allocations: 415.4 kB / 0.6022 GB, free: 132.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002099/2.157, allocations: 0.8326 MB / 0.603 GB, free: 132.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.313e-06/2.157, allocations: 2.625 kB / 0.603 GB, free: 132.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4049/2.562, allocations: 59.48 MB / 0.6611 GB, free: 104 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 30.83/33.39, allocations: 2.109 kB / 0.6611 GB, free: 104 MB / 462.1 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.AcidBase.Phosphate_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Chemical_Chemical_Examples_AcidBase_Phosphate.fmu > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)