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.005588/0.005588, allocations: 99.03 kB / 15.73 MB, free: 6.043 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.001185/0.001185, allocations: 195.3 kB / 16.68 MB, free: 5.973 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2245/0.2245, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 55.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2542, allocations: 53.6 MB / 478.3 MB, free: 25.63 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.03571/0.29, allocations: 28.36 MB / 0.4948 GB, free: 6.383 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03051/0.3205, allocations: 28.71 MB / 0.5228 GB, free: 9.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001733/0.3223, allocations: 23.81 kB / 0.5229 GB, free: 9.535 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001688/0.324, allocations: 0.5739 MB / 0.5234 GB, free: 8.957 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007566/0.3316, allocations: 2.588 MB / 0.5259 GB, free: 6.352 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01073/0.3423, allocations: 3.534 MB / 0.5294 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004921/0.3473, allocations: 2.724 MB / 0.5321 GB, free: 64 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002362/0.3497, allocations: 1.633 MB / 0.5336 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001959/0.3517, allocations: 1.422 MB / 0.535 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002355/0.354, allocations: 1.604 MB / 0.5366 GB, free: 11.36 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004324/0.3545, allocations: 252 kB / 0.5368 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008497/0.363, allocations: 3.144 MB / 0.5399 GB, free: 7.961 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006468/0.3637, allocations: 0.6154 MB / 0.5405 GB, free: 7.344 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001394/0.3651, allocations: 1.202 MB / 0.5417 GB, free: 6.137 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.3768, allocations: 5.937 MB / 0.5475 GB, free: 184 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.3768, allocations: 0 / 0.5475 GB, free: 184 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3768, allocations: 4 kB / 0.5475 GB, free: 180 kB / 414.1 MB Notification: Performance of Transformations before backend: time 4.739e-05/0.3769, allocations: 3.938 kB / 0.5475 GB, free: 176 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.005842/0.3827, allocations: 2.985 MB / 0.5504 GB, free: 13.13 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3828, allocations: 8.031 kB / 0.5504 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002944/0.3831, allocations: 258 kB / 0.5507 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002031/0.3851, allocations: 473.4 kB / 0.5511 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.3868, allocations: 1.088 MB / 0.5522 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002119/0.3871, allocations: 259 kB / 0.5524 GB, free: 10.99 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003271/0.3874, allocations: 188.3 kB / 0.5526 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003888/0.3913, allocations: 2.504 MB / 0.555 GB, free: 8.266 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/0.3914, allocations: 3.938 kB / 0.555 GB, free: 8.262 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001981/0.3916, allocations: 80 kB / 0.5551 GB, free: 8.184 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.421e-05/0.3916, allocations: 44 kB / 0.5552 GB, free: 8.141 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004966/0.3966, allocations: 3.188 MB / 0.5583 GB, free: 4.949 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.01377/0.4104, allocations: 8.327 MB / 0.5664 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009052/0.4194, allocations: 5.415 MB / 0.5717 GB, free: 6.773 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00234/0.4218, allocations: 1.285 MB / 0.573 GB, free: 5.488 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01457/0.4364, allocations: 10.23 MB / 0.5829 GB, free: 10.17 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.4365, allocations: 43.88 kB / 0.583 GB, free: 10.12 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009643/0.4374, allocations: 238.4 kB / 0.5832 GB, free: 9.883 MB / 462.1 MB Notification: Performance of pre-optimization done (n=158): time 3.376e-06/0.4375, allocations: 0 / 0.5832 GB, free: 9.883 MB / 462.1 MB Notification: Performance of matching and sorting (n=187): time 0.02864/0.4661, allocations: 7.578 MB / 0.5906 GB, free: 2.203 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.4662, allocations: 69.41 kB / 0.5907 GB, free: 2.125 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/0.4675, allocations: 0.8973 MB / 0.5916 GB, free: 1.211 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002352/0.4677, allocations: 57.7 kB / 0.5916 GB, free: 1.148 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005508/0.4683, allocations: 0.8027 MB / 0.5924 GB, free: 340 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006843/0.469, allocations: 0.6314 MB / 0.593 GB, free: 15.69 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008821/0.4699, allocations: 415.8 kB / 0.5934 GB, free: 15.28 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.47, allocations: 305.1 kB / 0.5937 GB, free: 14.98 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001602/0.4716, allocations: 0.7851 MB / 0.5945 GB, free: 14.19 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002046/0.4737, allocations: 1.371 MB / 0.5958 GB, free: 12.55 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003836/0.4775, allocations: 2.364 MB / 0.5981 GB, free: 9.938 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.925e-05/0.4776, allocations: 8 kB / 0.5981 GB, free: 9.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01198/0.4896, allocations: 3.379 MB / 0.6014 GB, free: 6.531 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/0.4896, allocations: 12.22 kB / 0.6014 GB, free: 6.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.2e-05/0.4897, allocations: 24 kB / 0.6015 GB, free: 6.496 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003793/0.4935, allocations: 0.814 MB / 0.6023 GB, free: 5.672 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002066/0.4956, allocations: 0.5188 MB / 0.6028 GB, free: 5.152 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005947/0.5015, allocations: 3.902 MB / 0.6066 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00171/0.5033, allocations: 67.98 kB / 0.6066 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004498/0.5037, allocations: 123.9 kB / 0.6068 GB, free: 0.7852 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.00101/0.5047, allocations: 397.1 kB / 0.6071 GB, free: 396 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004571/0.5052, allocations: 146.1 kB / 0.6073 GB, free: 248 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2157/0.7209, allocations: 3.322 MB / 0.6105 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.13e-05/0.721, allocations: 22.78 kB / 0.6105 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-05/0.721, allocations: 6.781 kB / 0.6105 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.151e-05/0.7211, allocations: 8.219 kB / 0.6106 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01545/0.7365, allocations: 5.23 MB / 0.6157 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.7366, allocations: 0.9375 kB / 0.6157 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/0.7381, allocations: 358.8 kB / 0.616 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003833/0.742, allocations: 0.8006 MB / 0.6168 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002364/0.7422, allocations: 64.17 kB / 0.6168 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004305/0.7465, allocations: 3.793 MB / 0.6206 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.7466, allocations: 3.438 kB / 0.6206 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01312/0.7597, allocations: 4.234 MB / 0.6247 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004282/0.7602, allocations: 209.3 kB / 0.6249 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005216/0.7607, allocations: 32.06 kB / 0.6249 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.7619, allocations: 40.36 kB / 0.625 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005727/0.7625, allocations: 200.3 kB / 0.6251 GB, free: 109.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002416/0.7628, allocations: 86.36 kB / 0.6252 GB, free: 109.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009784/0.7638, allocations: 0.5747 MB / 0.6258 GB, free: 108.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7638, allocations: 1.062 kB / 0.6258 GB, free: 108.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003813/0.7676, allocations: 1.177 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.01663/0.7842, allocations: 6.006 MB / 0.6328 GB, free: 105.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004822/0.7891, allocations: 2.561 MB / 0.6353 GB, free: 104.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.7891, allocations: 0 / 0.6353 GB, free: 104.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002614/0.7918, allocations: 1.509 MB / 0.6368 GB, free: 103.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/0.7937, allocations: 316.2 kB / 0.6371 GB, free: 103.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03587/0.8296, allocations: 15.77 MB / 0.6525 GB, free: 92.74 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007749/0.8304, allocations: 1.325 MB / 0.6538 GB, free: 91.41 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001538/0.8319, allocations: 426.1 kB / 0.6542 GB, free: 91.11 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/0.8331, allocations: 0.8286 MB / 0.655 GB, free: 90.28 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/0.8331, allocations: 0 / 0.655 GB, free: 90.28 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08417/0.9173, allocations: 60.01 MB / 0.7136 GB, free: 31.28 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.65/17.57, allocations: 14.47 kB / 0.7136 GB, free: 31.27 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)