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.001168/0.001168, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00128/0.00128, allocations: 193.6 kB / 16.14 MB, free: 6.688 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.23/1.23, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1716/0.1716, allocations: 15.32 MB / 305.3 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 63.91 kB / 369.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08242/0.08357, allocations: 53.61 MB / 423.4 MB, free: 14.68 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.287/0.3706, allocations: 29.1 MB / 452.5 MB, free: 38.83 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02114/0.3918, allocations: 28.62 MB / 481.1 MB, free: 23.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001263/0.3931, allocations: 42.09 kB / 481.1 MB, free: 23.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001228/0.3943, allocations: 0.5086 MB / 481.6 MB, free: 23.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005385/0.3997, allocations: 2.289 MB / 483.9 MB, free: 21.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008521/0.4083, allocations: 3.075 MB / 487 MB, free: 20.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002904/0.4112, allocations: 2.671 MB / 489.7 MB, free: 18.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001459/0.4127, allocations: 1.422 MB / 491.1 MB, free: 18.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001548/0.4142, allocations: 1.395 MB / 492.5 MB, free: 17.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001761/0.416, allocations: 1.58 MB / 494.1 MB, free: 17.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003525/0.4164, allocations: 168.5 kB / 494.2 MB, free: 17.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008575/0.4249, allocations: 3.105 MB / 497.3 MB, free: 16.47 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005357/0.4255, allocations: 0.547 MB / 497.9 MB, free: 16.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.4267, allocations: 1.14 MB / 499 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.4369, allocations: 5.57 MB / 0.4928 GB, free: 13.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.4369, allocations: 1.594 kB / 0.4928 GB, free: 13.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.4369, allocations: 0 / 0.4928 GB, free: 13.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.285e-05/0.4369, allocations: 2.875 kB / 0.4928 GB, free: 13.25 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.005212/0.4421, allocations: 2.979 MB / 0.4957 GB, free: 10.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.4422, allocations: 12.03 kB / 0.4957 GB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002788/0.4425, allocations: 262.2 kB / 0.4959 GB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001824/0.4443, allocations: 466.7 kB / 0.4964 GB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/0.4456, allocations: 1.063 MB / 0.4974 GB, free: 9.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.4457, allocations: 256.6 kB / 0.4977 GB, free: 8.824 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00027/0.446, allocations: 193.8 kB / 0.4979 GB, free: 8.637 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003429/0.4494, allocations: 2.503 MB / 0.5003 GB, free: 6.641 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.055e-05/0.4495, allocations: 0 / 0.5003 GB, free: 6.641 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001887/0.4497, allocations: 80 kB / 0.5004 GB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.4497, allocations: 44 kB / 0.5004 GB, free: 6.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004018/0.4537, allocations: 3.186 MB / 0.5035 GB, free: 3.801 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.01213/0.4659, allocations: 8.354 MB / 0.5117 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008467/0.4744, allocations: 5.415 MB / 0.517 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001848/0.4762, allocations: 1.285 MB / 0.5182 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01305/0.4893, allocations: 10.25 MB / 0.5282 GB, free: 9.234 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.4894, allocations: 55.86 kB / 0.5283 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001048/0.4904, allocations: 222.4 kB / 0.5285 GB, free: 8.953 MB / 398.1 MB Notification: Performance of pre-optimization done (n=158): time 3.076e-06/0.4904, allocations: 0 / 0.5285 GB, free: 8.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=187): time 0.0288/0.5192, allocations: 7.562 MB / 0.5359 GB, free: 1.289 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/0.5193, allocations: 73.41 kB / 0.536 GB, free: 1.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.5205, allocations: 0.9012 MB / 0.5368 GB, free: 292 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002207/0.5207, allocations: 57.7 kB / 0.5369 GB, free: 228 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004792/0.5212, allocations: 0.8026 MB / 0.5377 GB, free: 15.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005404/0.5217, allocations: 0.6353 MB / 0.5383 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005716/0.5223, allocations: 407.8 kB / 0.5387 GB, free: 14.36 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.805e-05/0.5224, allocations: 309.1 kB / 0.539 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/0.5237, allocations: 0.789 MB / 0.5398 GB, free: 13.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001698/0.5254, allocations: 1.371 MB / 0.5411 GB, free: 11.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003318/0.5287, allocations: 2.364 MB / 0.5434 GB, free: 9.008 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/0.5288, allocations: 4 kB / 0.5434 GB, free: 9.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01189/0.5407, allocations: 3.383 MB / 0.5467 GB, free: 5.602 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.5407, allocations: 16 kB / 0.5467 GB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/0.5407, allocations: 19.94 kB / 0.5467 GB, free: 5.566 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003776/0.5445, allocations: 0.8143 MB / 0.5475 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/0.5463, allocations: 0.5149 MB / 0.548 GB, free: 4.227 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005181/0.5515, allocations: 3.52 MB / 0.5515 GB, free: 448 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/0.5533, allocations: 111.9 kB / 0.5516 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002153/0.5536, allocations: 119.9 kB / 0.5517 GB, free: 216 kB / 414.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.0007976/0.5544, allocations: 409.1 kB / 0.5521 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003175/0.5547, allocations: 146.1 kB / 0.5522 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01177/0.5665, allocations: 3.33 MB / 0.5555 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/0.5665, allocations: 20 kB / 0.5555 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.5665, allocations: 4 kB / 0.5555 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.047e-05/0.5665, allocations: 7.969 kB / 0.5555 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01418/0.5807, allocations: 5.23 MB / 0.5606 GB, free: 6.977 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.5807, allocations: 0 / 0.5606 GB, free: 6.977 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/0.5822, allocations: 367.5 kB / 0.561 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003645/0.5858, allocations: 0.7945 MB / 0.5617 GB, free: 5.812 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001637/0.586, allocations: 67.94 kB / 0.5618 GB, free: 5.746 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004622/0.5906, allocations: 3.417 MB / 0.5651 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5907, allocations: 0 / 0.5651 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01257/0.6032, allocations: 4.235 MB / 0.5693 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003794/0.6036, allocations: 199.2 kB / 0.5695 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002298/0.6039, allocations: 40 kB / 0.5695 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.6049, allocations: 79.8 kB / 0.5696 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004514/0.6053, allocations: 201.6 kB / 0.5698 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/0.6055, allocations: 79.94 kB / 0.5699 GB, free: 13.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006893/0.6062, allocations: 0.5703 MB / 0.5704 GB, free: 12.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6062, allocations: 0 / 0.5704 GB, free: 12.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003209/0.6094, allocations: 1.171 MB / 0.5716 GB, free: 11.44 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.01533/0.6248, allocations: 6.013 MB / 0.5774 GB, free: 5.395 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004319/0.6291, allocations: 2.555 MB / 0.5799 GB, free: 2.793 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.6291, allocations: 0 / 0.5799 GB, free: 2.793 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002336/0.6315, allocations: 1.494 MB / 0.5814 GB, free: 1.254 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.633, allocations: 298.9 kB / 0.5817 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1762/0.8091, allocations: 17.51 MB / 0.5988 GB, free: 132.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005496/0.8097, allocations: 1.325 MB / 0.6001 GB, free: 132.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001715/0.8114, allocations: 413.6 kB / 0.6005 GB, free: 132.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009153/0.8124, allocations: 0.8339 MB / 0.6013 GB, free: 132.1 MB / 462.1 MB Notification: Performance of SimCode: time 4.7e-07/0.8124, allocations: 0 / 0.6013 GB, free: 132.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06751/0.8799, allocations: 57.74 MB / 0.6577 GB, free: 107.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/0.8801, allocations: 215.5 kB / 0.6579 GB, free: 107.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.194/4.074, allocations: 0 / 0.6579 GB, free: 107.3 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 & /home/hudson/saved_omc/OMSimulator/install/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)