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.005442/0.005443, allocations: 102 kB / 15.73 MB, free: 5.551 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.001289/0.001289, allocations: 196.3 kB / 16.67 MB, free: 5.477 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08212/0.08212, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 68.11 kB / 424.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09028/0.09215, allocations: 53.61 MB / 478.3 MB, free: 6.27 MB / 350.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.03981/0.132, allocations: 28.91 MB / 0.4953 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2144/0.3464, allocations: 28.68 MB / 0.5233 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/0.3476, allocations: 23.44 kB / 0.5234 GB, free: 13.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001422/0.3491, allocations: 0.5732 MB / 0.5239 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007206/0.3563, allocations: 2.586 MB / 0.5264 GB, free: 12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008522/0.3648, allocations: 3.514 MB / 0.5299 GB, free: 9.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003376/0.3682, allocations: 2.713 MB / 0.5325 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001698/0.3699, allocations: 1.631 MB / 0.5341 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00159/0.3715, allocations: 1.418 MB / 0.5355 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002109/0.3737, allocations: 1.603 MB / 0.5371 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004073/0.3741, allocations: 248.8 kB / 0.5373 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009546/0.3836, allocations: 3.152 MB / 0.5404 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006356/0.3843, allocations: 0.6082 MB / 0.541 GB, free: 4.949 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001293/0.3856, allocations: 1.215 MB / 0.5422 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0116/0.3972, allocations: 5.948 MB / 0.548 GB, free: 15.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3972, allocations: 0 / 0.548 GB, free: 15.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3972, allocations: 0 / 0.548 GB, free: 15.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.469e-05/0.3973, allocations: 0 / 0.548 GB, free: 15.66 MB / 398.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.006808/0.4041, allocations: 3.071 MB / 0.551 GB, free: 12.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.4042, allocations: 12.03 kB / 0.551 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003338/0.4045, allocations: 258.8 kB / 0.5512 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002137/0.4066, allocations: 477.2 kB / 0.5517 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001885/0.4085, allocations: 1.098 MB / 0.5528 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002333/0.4088, allocations: 251 kB / 0.553 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003422/0.4091, allocations: 199.1 kB / 0.5532 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004322/0.4135, allocations: 2.504 MB / 0.5556 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.53e-05/0.4135, allocations: 2.656 kB / 0.5556 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002247/0.4137, allocations: 76 kB / 0.5557 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.927e-05/0.4138, allocations: 46.72 kB / 0.5557 GB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005464/0.4193, allocations: 3.188 MB / 0.5589 GB, free: 4.375 MB / 398.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.01459/0.4339, allocations: 8.351 MB / 0.567 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009771/0.4437, allocations: 5.409 MB / 0.5723 GB, free: 6.238 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002328/0.446, allocations: 1.274 MB / 0.5735 GB, free: 4.965 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01501/0.461, allocations: 10.25 MB / 0.5836 GB, free: 9.645 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.4611, allocations: 51.81 kB / 0.5836 GB, free: 9.586 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009396/0.4621, allocations: 241.4 kB / 0.5838 GB, free: 9.352 MB / 430.1 MB Notification: Performance of pre-optimization done (n=158): time 3.837e-06/0.4621, allocations: 0 / 0.5838 GB, free: 9.352 MB / 430.1 MB Notification: Performance of matching and sorting (n=187): time 0.02955/0.4916, allocations: 7.591 MB / 0.5912 GB, free: 1.73 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/0.4917, allocations: 77.39 kB / 0.5913 GB, free: 1.645 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/0.4929, allocations: 0.8935 MB / 0.5922 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002505/0.4932, allocations: 61.7 kB / 0.5922 GB, free: 0.668 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006084/0.4938, allocations: 0.821 MB / 0.5931 GB, free: 15.83 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006087/0.4944, allocations: 0.67 MB / 0.5937 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006444/0.4951, allocations: 418.5 kB / 0.5941 GB, free: 14.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.4952, allocations: 308.9 kB / 0.5944 GB, free: 14.44 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/0.4967, allocations: 0.7812 MB / 0.5952 GB, free: 13.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001987/0.4987, allocations: 1.379 MB / 0.5965 GB, free: 12.03 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003822/0.5025, allocations: 2.367 MB / 0.5988 GB, free: 9.453 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.5025, allocations: 6.656 kB / 0.5988 GB, free: 9.449 MB / 446.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01223/0.5147, allocations: 3.387 MB / 0.6021 GB, free: 6.078 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/0.5148, allocations: 16 kB / 0.6021 GB, free: 6.062 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.256e-05/0.5148, allocations: 16 kB / 0.6022 GB, free: 6.047 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003837/0.5187, allocations: 0.8196 MB / 0.603 GB, free: 5.246 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/0.5209, allocations: 0.5175 MB / 0.6035 GB, free: 4.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006214/0.5271, allocations: 3.901 MB / 0.6073 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.5288, allocations: 71.98 kB / 0.6073 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002463/0.5291, allocations: 119.9 kB / 0.6075 GB, free: 388 kB / 446.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.0008138/0.5299, allocations: 403.8 kB / 0.6078 GB, free: 15.97 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003731/0.5303, allocations: 151 kB / 0.608 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0124/0.5427, allocations: 3.326 MB / 0.6112 GB, free: 12.56 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.459e-05/0.5428, allocations: 20 kB / 0.6113 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/0.5428, allocations: 7.984 kB / 0.6113 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.645e-05/0.5428, allocations: 11.95 kB / 0.6113 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01516/0.558, allocations: 5.231 MB / 0.6164 GB, free: 7.238 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.558, allocations: 2.656 kB / 0.6164 GB, free: 7.238 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001648/0.5597, allocations: 363.5 kB / 0.6167 GB, free: 6.883 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003786/0.5635, allocations: 0.7891 MB / 0.6175 GB, free: 6.109 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002193/0.5637, allocations: 75.88 kB / 0.6176 GB, free: 6.035 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005341/0.5691, allocations: 3.795 MB / 0.6213 GB, free: 1.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.5691, allocations: 0 / 0.6213 GB, free: 1.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01366/0.5828, allocations: 4.242 MB / 0.6254 GB, free: 13.74 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005461/0.5834, allocations: 216 kB / 0.6256 GB, free: 13.51 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003156/0.5837, allocations: 38.69 kB / 0.6257 GB, free: 13.47 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009358/0.5846, allocations: 43.92 kB / 0.6257 GB, free: 13.43 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005902/0.5852, allocations: 197.7 kB / 0.6259 GB, free: 13.23 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001887/0.5854, allocations: 75.94 kB / 0.626 GB, free: 13.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008509/0.5863, allocations: 0.5742 MB / 0.6265 GB, free: 12.58 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5863, allocations: 0 / 0.6265 GB, free: 12.58 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003424/0.5897, allocations: 1.195 MB / 0.6277 GB, free: 11.38 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.01703/0.6068, allocations: 6.037 MB / 0.6336 GB, free: 5.391 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005548/0.6123, allocations: 2.563 MB / 0.6361 GB, free: 2.789 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.6124, allocations: 0 / 0.6361 GB, free: 2.789 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002825/0.6152, allocations: 1.502 MB / 0.6376 GB, free: 1.242 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001573/0.6168, allocations: 311.1 kB / 0.6379 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04054/0.6574, allocations: 15.86 MB / 0.6533 GB, free: 408 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.6585, allocations: 1.333 MB / 0.6546 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00159/0.6601, allocations: 409.1 kB / 0.655 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.6614, allocations: 0.8425 MB / 0.6559 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of SimCode: time 8.22e-07/0.6614, allocations: 0 / 0.6559 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1163/0.7777, allocations: 60 MB / 0.7145 GB, free: 2.23 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.36/17.13, allocations: 14.8 kB / 0.7145 GB, free: 2.219 MB / 0.545 GB (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)