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.0009721/0.0009722, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.000955/0.000955, allocations: 191.9 kB / 16.25 MB, free: 6.629 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.197/1.197, allocations: 222.9 MB / 239.9 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1747/0.1747, allocations: 15.31 MB / 305.4 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 59.91 kB / 369.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08817/0.08928, allocations: 53.61 MB / 423.6 MB, free: 14.59 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.3089/0.3982, allocations: 29.09 MB / 452.6 MB, free: 38.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02356/0.4218, allocations: 28.32 MB / 481 MB, free: 23.72 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00199/0.4238, allocations: 42.22 kB / 481 MB, free: 23.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.4253, allocations: 0.5115 MB / 481.5 MB, free: 23.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007883/0.4332, allocations: 2.346 MB / 483.9 MB, free: 22.08 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009953/0.4431, allocations: 3.14 MB / 487 MB, free: 20.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003417/0.4466, allocations: 2.717 MB / 489.7 MB, free: 18.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001617/0.4482, allocations: 1.619 MB / 491.3 MB, free: 18.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002075/0.4503, allocations: 1.502 MB / 492.8 MB, free: 17.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001822/0.4521, allocations: 1.64 MB / 494.5 MB, free: 17.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003506/0.4525, allocations: 248.4 kB / 494.7 MB, free: 17.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009828/0.4623, allocations: 3.23 MB / 498 MB, free: 16.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000842/0.4632, allocations: 0.6323 MB / 498.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.4647, allocations: 1.221 MB / 499.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01381/0.4785, allocations: 5.665 MB / 0.4936 GB, free: 12.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.4786, allocations: 0 / 0.4936 GB, free: 12.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4786, allocations: 0 / 0.4936 GB, free: 12.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.74e-05/0.4786, allocations: 4 kB / 0.4936 GB, free: 12.54 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.005829/0.4845, allocations: 2.986 MB / 0.4965 GB, free: 9.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.4845, allocations: 12.03 kB / 0.4966 GB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002899/0.4848, allocations: 266 kB / 0.4968 GB, free: 9.582 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001999/0.4868, allocations: 474.7 kB / 0.4973 GB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001468/0.4883, allocations: 1.051 MB / 0.4983 GB, free: 8.258 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.4885, allocations: 253.3 kB / 0.4985 GB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002897/0.4888, allocations: 189.7 kB / 0.4987 GB, free: 7.805 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003569/0.4923, allocations: 2.518 MB / 0.5012 GB, free: 5.793 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/0.4924, allocations: 0.8906 kB / 0.5012 GB, free: 5.793 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001929/0.4926, allocations: 72 kB / 0.5012 GB, free: 5.723 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.4926, allocations: 44 kB / 0.5013 GB, free: 5.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004011/0.4966, allocations: 3.198 MB / 0.5044 GB, free: 2.949 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.01212/0.5088, allocations: 8.341 MB / 0.5126 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008556/0.5173, allocations: 5.422 MB / 0.5178 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001825/0.5192, allocations: 1.278 MB / 0.5191 GB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01336/0.5326, allocations: 10.26 MB / 0.5291 GB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.5326, allocations: 47.81 kB / 0.5292 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001157/0.5338, allocations: 246.2 kB / 0.5294 GB, free: 8.129 MB / 398.1 MB Notification: Performance of pre-optimization done (n=158): time 4.137e-06/0.5338, allocations: 0 / 0.5294 GB, free: 8.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=187): time 0.02881/0.5626, allocations: 7.551 MB / 0.5368 GB, free: 492 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.17e-05/0.5627, allocations: 73.41 kB / 0.5368 GB, free: 404 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.5639, allocations: 0.8973 MB / 0.5377 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003326/0.5642, allocations: 61.7 kB / 0.5378 GB, free: 15.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005401/0.5648, allocations: 0.8026 MB / 0.5386 GB, free: 14.6 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005671/0.5653, allocations: 0.6314 MB / 0.5392 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005953/0.5659, allocations: 411.8 kB / 0.5396 GB, free: 13.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.5661, allocations: 313 kB / 0.5399 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.5674, allocations: 0.7812 MB / 0.5406 GB, free: 12.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001685/0.5691, allocations: 1.375 MB / 0.542 GB, free: 10.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003225/0.5723, allocations: 2.356 MB / 0.5443 GB, free: 8.207 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.5723, allocations: 11.94 kB / 0.5443 GB, free: 8.195 MB / 414.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01172/0.584, allocations: 3.383 MB / 0.5476 GB, free: 4.793 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/0.5841, allocations: 16 kB / 0.5476 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-05/0.5841, allocations: 16 kB / 0.5476 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003788/0.5879, allocations: 0.8103 MB / 0.5484 GB, free: 3.941 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002071/0.59, allocations: 0.5149 MB / 0.5489 GB, free: 3.426 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005662/0.5957, allocations: 3.898 MB / 0.5527 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.5976, allocations: 111.9 kB / 0.5528 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002088/0.5979, allocations: 120 kB / 0.5529 GB, free: 15.02 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.0008871/0.5988, allocations: 409 kB / 0.5533 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003576/0.5991, allocations: 146.1 kB / 0.5535 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01208/0.6112, allocations: 3.338 MB / 0.5567 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.118e-05/0.6113, allocations: 20 kB / 0.5567 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.6113, allocations: 7.938 kB / 0.5568 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.176e-05/0.6113, allocations: 7.969 kB / 0.5568 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01395/0.6253, allocations: 5.223 MB / 0.5619 GB, free: 5.785 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.6253, allocations: 0 / 0.5619 GB, free: 5.785 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00144/0.6268, allocations: 363.5 kB / 0.5622 GB, free: 5.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003658/0.6305, allocations: 0.7906 MB / 0.563 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001718/0.6306, allocations: 71.94 kB / 0.563 GB, free: 4.559 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004895/0.6355, allocations: 3.799 MB / 0.5668 GB, free: 492 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.6356, allocations: 0 / 0.5668 GB, free: 492 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01242/0.648, allocations: 4.231 MB / 0.5709 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004802/0.6485, allocations: 207.1 kB / 0.5711 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002438/0.6488, allocations: 36 kB / 0.5711 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.6498, allocations: 71.89 kB / 0.5712 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004807/0.6503, allocations: 201.6 kB / 0.5714 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/0.6505, allocations: 75.95 kB / 0.5715 GB, free: 11.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007576/0.6512, allocations: 0.5781 MB / 0.572 GB, free: 11.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6512, allocations: 7.938 kB / 0.572 GB, free: 11.03 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003527/0.6548, allocations: 1.171 MB / 0.5732 GB, free: 9.859 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.01575/0.6705, allocations: 6.001 MB / 0.579 GB, free: 3.824 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006868/0.6774, allocations: 2.82 MB / 0.5818 GB, free: 0.957 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.6775, allocations: 0 / 0.5818 GB, free: 0.957 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002506/0.68, allocations: 1.51 MB / 0.5833 GB, free: 15.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.6815, allocations: 322.2 kB / 0.5836 GB, free: 15.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1919/0.8735, allocations: 17.5 MB / 0.6007 GB, free: 132.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00064/0.8742, allocations: 1.326 MB / 0.6019 GB, free: 132.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001771/0.876, allocations: 411.4 kB / 0.6023 GB, free: 132.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009572/0.8769, allocations: 0.8325 MB / 0.6032 GB, free: 132.1 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.8769, allocations: 0 / 0.6032 GB, free: 132.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07845/0.9554, allocations: 59.13 MB / 0.6609 GB, free: 103.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/0.9556, allocations: 214 kB / 0.6611 GB, free: 103.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.325/4.281, allocations: 0 / 0.6611 GB, free: 103.5 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)