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.007738/0.007738, allocations: 97.47 kB / 15.73 MB, free: 6.008 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.001916/0.001916, allocations: 195.4 kB / 16.68 MB, free: 5.934 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.452/1.452, 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.205/0.205, allocations: 15.33 MB / 305.9 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 59.91 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2562, allocations: 53.61 MB / 478.3 MB, free: 25.3 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.03541/0.2917, allocations: 28.53 MB / 0.495 GB, free: 6.199 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03317/0.3249, allocations: 28.7 MB / 0.523 GB, free: 9.387 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001471/0.3264, allocations: 23.88 kB / 0.523 GB, free: 9.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001525/0.3279, allocations: 0.5739 MB / 0.5236 GB, free: 8.785 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006938/0.3349, allocations: 2.576 MB / 0.5261 GB, free: 6.191 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009329/0.3442, allocations: 3.507 MB / 0.5295 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004846/0.3491, allocations: 2.724 MB / 0.5322 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002299/0.3514, allocations: 1.633 MB / 0.5338 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002349/0.3538, allocations: 1.415 MB / 0.5352 GB, free: 12.84 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002994/0.3568, allocations: 1.608 MB / 0.5367 GB, free: 11.23 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005755/0.3574, allocations: 248 kB / 0.537 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0119/0.3693, allocations: 3.152 MB / 0.5401 GB, free: 7.828 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001176/0.3705, allocations: 0.6154 MB / 0.5407 GB, free: 7.211 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001924/0.3725, allocations: 1.202 MB / 0.5418 GB, free: 6.004 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01409/0.3866, allocations: 5.954 MB / 0.5476 GB, free: 28 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3866, allocations: 0 / 0.5476 GB, free: 28 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3866, allocations: 0 / 0.5476 GB, free: 28 kB / 414.1 MB Notification: Performance of Transformations before backend: time 7.613e-05/0.3867, allocations: 0 / 0.5476 GB, free: 28 kB / 414.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.007741/0.3945, allocations: 3.065 MB / 0.5506 GB, free: 12.9 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.3946, allocations: 12.03 kB / 0.5506 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000417/0.395, allocations: 262 kB / 0.5509 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002432/0.3974, allocations: 478.6 kB / 0.5514 GB, free: 12.15 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002131/0.3996, allocations: 1.1 MB / 0.5524 GB, free: 11.01 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000277/0.3999, allocations: 255 kB / 0.5527 GB, free: 10.74 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003562/0.4002, allocations: 192.3 kB / 0.5529 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004725/0.405, allocations: 2.512 MB / 0.5553 GB, free: 8.004 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.953e-05/0.405, allocations: 0 / 0.5553 GB, free: 8.004 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002127/0.4053, allocations: 72 kB / 0.5554 GB, free: 7.934 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.076e-05/0.4053, allocations: 44 kB / 0.5554 GB, free: 7.891 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005625/0.4109, allocations: 3.188 MB / 0.5585 GB, free: 4.699 MB / 430.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.01603/0.427, allocations: 8.345 MB / 0.5667 GB, free: 12.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01019/0.4372, allocations: 5.423 MB / 0.572 GB, free: 6.496 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002643/0.4399, allocations: 1.278 MB / 0.5732 GB, free: 5.219 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01573/0.4557, allocations: 10.24 MB / 0.5832 GB, free: 9.895 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.869e-05/0.4557, allocations: 51.88 kB / 0.5833 GB, free: 9.836 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001038/0.4568, allocations: 238.8 kB / 0.5835 GB, free: 9.602 MB / 462.1 MB Notification: Performance of pre-optimization done (n=158): time 6.452e-06/0.4568, allocations: 0 / 0.5835 GB, free: 9.602 MB / 462.1 MB Notification: Performance of matching and sorting (n=187): time 0.02987/0.4867, allocations: 7.597 MB / 0.5909 GB, free: 1.906 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.387e-05/0.4868, allocations: 73.41 kB / 0.591 GB, free: 1.824 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.488, allocations: 0.8974 MB / 0.5919 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002673/0.4883, allocations: 61.64 kB / 0.5919 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006299/0.4889, allocations: 0.8286 MB / 0.5927 GB, free: 4 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006911/0.4896, allocations: 0.6664 MB / 0.5934 GB, free: 15.33 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006525/0.4903, allocations: 411.9 kB / 0.5938 GB, free: 14.92 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.4904, allocations: 312.9 kB / 0.5941 GB, free: 14.61 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/0.492, allocations: 0.7851 MB / 0.5948 GB, free: 13.82 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002077/0.494, allocations: 1.379 MB / 0.5962 GB, free: 12.18 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003839/0.4979, allocations: 2.356 MB / 0.5985 GB, free: 9.574 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.4979, allocations: 4 kB / 0.5985 GB, free: 9.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01226/0.5102, allocations: 3.387 MB / 0.6018 GB, free: 6.164 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.78e-05/0.5103, allocations: 19.94 kB / 0.6018 GB, free: 6.145 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.382e-05/0.5103, allocations: 16 kB / 0.6018 GB, free: 6.129 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003743/0.514, allocations: 0.8265 MB / 0.6026 GB, free: 5.293 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002166/0.5162, allocations: 0.5149 MB / 0.6031 GB, free: 4.777 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006425/0.5227, allocations: 3.887 MB / 0.6069 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.5244, allocations: 76.05 kB / 0.607 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002947/0.5247, allocations: 123.9 kB / 0.6071 GB, free: 428 kB / 478.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.0009941/0.5257, allocations: 393.1 kB / 0.6075 GB, free: 24 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2161/0.7418, allocations: 155.6 kB / 0.6077 GB, free: 116.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01216/0.754, allocations: 3.319 MB / 0.6109 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.859e-05/0.754, allocations: 27.02 kB / 0.6109 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-05/0.7541, allocations: 2.031 kB / 0.6109 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.779e-05/0.7541, allocations: 9.094 kB / 0.6109 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01445/0.7686, allocations: 5.231 MB / 0.616 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.678e-05/0.7686, allocations: 0.625 kB / 0.616 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001763/0.7704, allocations: 364.1 kB / 0.6164 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003361/0.7738, allocations: 0.8053 MB / 0.6172 GB, free: 114.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002364/0.774, allocations: 69.12 kB / 0.6172 GB, free: 114.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004051/0.7781, allocations: 3.793 MB / 0.6209 GB, free: 110.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.7781, allocations: 0 / 0.6209 GB, free: 110.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01212/0.7902, allocations: 4.24 MB / 0.6251 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003264/0.7906, allocations: 224.1 kB / 0.6253 GB, free: 109.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002315/0.7908, allocations: 36.5 kB / 0.6253 GB, free: 109.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009326/0.7917, allocations: 43.27 kB / 0.6254 GB, free: 109 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004583/0.7922, allocations: 194.2 kB / 0.6256 GB, free: 109 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/0.7924, allocations: 81.98 kB / 0.6256 GB, free: 109 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007064/0.7931, allocations: 0.5751 MB / 0.6262 GB, free: 108.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7931, allocations: 0 / 0.6262 GB, free: 108.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002833/0.7959, allocations: 1.19 MB / 0.6274 GB, free: 108.6 MB / 478.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.01474/0.8107, allocations: 6.032 MB / 0.6333 GB, free: 105.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004472/0.8152, allocations: 2.562 MB / 0.6358 GB, free: 104.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.8152, allocations: 0 / 0.6358 GB, free: 104.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002458/0.8177, allocations: 1.501 MB / 0.6372 GB, free: 103.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.8192, allocations: 324.5 kB / 0.6375 GB, free: 103.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03398/0.8532, allocations: 15.84 MB / 0.653 GB, free: 92.16 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006188/0.8539, allocations: 1.329 MB / 0.6543 GB, free: 90.82 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001442/0.8553, allocations: 412.3 kB / 0.6547 GB, free: 90.53 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008993/0.8562, allocations: 0.8386 MB / 0.6555 GB, free: 89.7 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/0.8562, allocations: 0 / 0.6555 GB, free: 89.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08439/0.9406, allocations: 60.01 MB / 0.7141 GB, free: 30.67 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.06/18, allocations: 6.812 kB / 0.7141 GB, free: 30.66 MB / 478.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)