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.007799/0.007799, allocations: 101.8 kB / 15.73 MB, free: 6.012 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.001679/0.001679, allocations: 195.2 kB / 16.67 MB, free: 5.949 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2059/0.2059, allocations: 15.32 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001263, allocations: 59.91 kB / 424.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.271, allocations: 53.6 MB / 478.3 MB, free: 25.57 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.0324/0.3034, allocations: 28.32 MB / 0.4948 GB, free: 6.383 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02797/0.3314, allocations: 28.71 MB / 0.5228 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.333, allocations: 23.88 kB / 0.5228 GB, free: 9.531 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001466/0.3345, allocations: 0.5738 MB / 0.5234 GB, free: 8.953 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006931/0.3414, allocations: 2.573 MB / 0.5259 GB, free: 6.363 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009063/0.3505, allocations: 3.511 MB / 0.5293 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004288/0.3548, allocations: 2.712 MB / 0.532 GB, free: 112 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002038/0.3569, allocations: 1.641 MB / 0.5336 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001814/0.3587, allocations: 1.419 MB / 0.535 GB, free: 13.01 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00231/0.3611, allocations: 1.604 MB / 0.5365 GB, free: 11.4 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004234/0.3615, allocations: 248 kB / 0.5368 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009502/0.371, allocations: 3.148 MB / 0.5398 GB, free: 8.004 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009215/0.372, allocations: 0.6115 MB / 0.5404 GB, free: 7.391 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00154/0.3735, allocations: 1.214 MB / 0.5416 GB, free: 6.172 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01369/0.3872, allocations: 5.933 MB / 0.5474 GB, free: 224 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3873, allocations: 0 / 0.5474 GB, free: 224 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3873, allocations: 0 / 0.5474 GB, free: 224 kB / 414.1 MB Notification: Performance of Transformations before backend: time 8.571e-05/0.3874, allocations: 0 / 0.5474 GB, free: 224 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.006504/0.3939, allocations: 2.985 MB / 0.5503 GB, free: 13.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3939, allocations: 12.03 kB / 0.5503 GB, free: 13.16 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003104/0.3943, allocations: 269.9 kB / 0.5506 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002021/0.3963, allocations: 461.4 kB / 0.551 GB, free: 12.44 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.398, allocations: 1.092 MB / 0.5521 GB, free: 11.3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001994/0.3982, allocations: 251 kB / 0.5523 GB, free: 11.04 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003099/0.3986, allocations: 192.3 kB / 0.5525 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003848/0.4024, allocations: 2.508 MB / 0.555 GB, free: 8.305 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.005e-05/0.4025, allocations: 4 kB / 0.555 GB, free: 8.301 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001956/0.4027, allocations: 72 kB / 0.555 GB, free: 8.23 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.043e-05/0.4027, allocations: 44 kB / 0.5551 GB, free: 8.188 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004668/0.4074, allocations: 3.196 MB / 0.5582 GB, free: 4.988 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.01424/0.4216, allocations: 8.331 MB / 0.5663 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00906/0.4307, allocations: 5.415 MB / 0.5716 GB, free: 6.805 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002201/0.433, allocations: 1.278 MB / 0.5729 GB, free: 5.527 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01453/0.4475, allocations: 10.23 MB / 0.5829 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.4476, allocations: 55.81 kB / 0.5829 GB, free: 10.15 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001065/0.4487, allocations: 234.4 kB / 0.5831 GB, free: 9.922 MB / 462.1 MB Notification: Performance of pre-optimization done (n=158): time 7.875e-06/0.4487, allocations: 0 / 0.5831 GB, free: 9.922 MB / 462.1 MB Notification: Performance of matching and sorting (n=187): time 0.03055/0.4792, allocations: 7.566 MB / 0.5905 GB, free: 2.254 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.4793, allocations: 77.34 kB / 0.5906 GB, free: 2.168 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.4806, allocations: 0.8973 MB / 0.5915 GB, free: 1.254 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003418/0.481, allocations: 61.7 kB / 0.5915 GB, free: 1.188 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005512/0.4815, allocations: 0.7988 MB / 0.5923 GB, free: 384 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007848/0.4823, allocations: 0.6314 MB / 0.5929 GB, free: 15.73 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000769/0.4831, allocations: 415.8 kB / 0.5933 GB, free: 15.32 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.4832, allocations: 305.1 kB / 0.5936 GB, free: 15.02 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/0.4846, allocations: 0.7851 MB / 0.5944 GB, free: 14.23 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001858/0.4865, allocations: 1.379 MB / 0.5957 GB, free: 12.59 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003549/0.4901, allocations: 2.356 MB / 0.598 GB, free: 9.98 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.726e-05/0.4901, allocations: 4 kB / 0.598 GB, free: 9.977 MB / 478.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01229/0.5024, allocations: 3.387 MB / 0.6014 GB, free: 6.57 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.749e-05/0.5025, allocations: 12 kB / 0.6014 GB, free: 6.559 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.299e-05/0.5025, allocations: 20 kB / 0.6014 GB, free: 6.539 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003947/0.5065, allocations: 0.8141 MB / 0.6022 GB, free: 5.715 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/0.5086, allocations: 0.5227 MB / 0.6027 GB, free: 5.191 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0058/0.5144, allocations: 3.893 MB / 0.6065 GB, free: 1.02 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001684/0.5161, allocations: 67.98 kB / 0.6066 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003798/0.5165, allocations: 123.9 kB / 0.6067 GB, free: 0.832 MB / 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.0009696/0.5175, allocations: 405.1 kB / 0.6071 GB, free: 436 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004241/0.5179, allocations: 150.1 kB / 0.6072 GB, free: 284 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2382/0.7561, allocations: 3.32 MB / 0.6104 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.607e-05/0.7562, allocations: 23.09 kB / 0.6105 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/0.7562, allocations: 5.516 kB / 0.6105 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.757e-05/0.7563, allocations: 7.406 kB / 0.6105 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01523/0.7715, allocations: 5.222 MB / 0.6156 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.297e-05/0.7716, allocations: 2.688 kB / 0.6156 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001815/0.7734, allocations: 365.1 kB / 0.6159 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003857/0.7773, allocations: 0.7966 MB / 0.6167 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003677/0.7777, allocations: 69.59 kB / 0.6168 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004442/0.7821, allocations: 3.795 MB / 0.6205 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.7821, allocations: 0 / 0.6205 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01305/0.7952, allocations: 4.233 MB / 0.6246 GB, free: 109.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004539/0.7957, allocations: 204.9 kB / 0.6248 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003628/0.7961, allocations: 39.78 kB / 0.6248 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.7971, allocations: 42.39 kB / 0.6249 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004875/0.7976, allocations: 199.4 kB / 0.6251 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001689/0.7978, allocations: 82.16 kB / 0.6252 GB, free: 109.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008223/0.7986, allocations: 0.5757 MB / 0.6257 GB, free: 108.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7986, allocations: 0 / 0.6257 GB, free: 108.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003404/0.802, allocations: 1.175 MB / 0.6269 GB, free: 108.8 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.0162/0.8183, allocations: 6.008 MB / 0.6327 GB, free: 106 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005557/0.8239, allocations: 2.562 MB / 0.6352 GB, free: 104.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.8239, allocations: 3.594 kB / 0.6352 GB, free: 104.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002654/0.8266, allocations: 1.499 MB / 0.6367 GB, free: 103.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/0.8281, allocations: 314.1 kB / 0.637 GB, free: 103.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03532/0.8635, allocations: 15.77 MB / 0.6524 GB, free: 92.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/0.8645, allocations: 1.323 MB / 0.6537 GB, free: 91.36 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00181/0.8664, allocations: 423.3 kB / 0.6541 GB, free: 91.07 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.8675, allocations: 0.8312 MB / 0.6549 GB, free: 90.24 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/0.8675, allocations: 0 / 0.6549 GB, free: 90.24 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0878/0.9553, allocations: 60.88 MB / 0.7144 GB, free: 30.38 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.36/17.31, allocations: 8 kB / 0.7144 GB, free: 30.38 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 & /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)