Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 213.5 kB / 22.25 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1458/0.1458, allocations: 23.89 MB / 336.3 MB, free: 10.95 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 67.89 kB / 471.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3352, allocations: 59.86 MB / 0.5185 GB, free: 9.469 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.Obsolete.Examples.AcidBase.Phosphate): time 0.07836/0.4136, allocations: 28.7 MB / 0.5466 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03831/0.4519, allocations: 25.28 MB / 0.5713 GB, free: 3.922 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001728/0.4536, allocations: 39.69 kB / 0.5713 GB, free: 3.883 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002104/0.4557, allocations: 0.5233 MB / 0.5718 GB, free: 3.355 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00911/0.4648, allocations: 2.569 MB / 0.5743 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01407/0.4789, allocations: 3.573 MB / 0.5778 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005605/0.4845, allocations: 2.723 MB / 0.5805 GB, free: 10.45 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002575/0.4871, allocations: 1.348 MB / 0.5818 GB, free: 9.059 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002865/0.4899, allocations: 1.438 MB / 0.5832 GB, free: 7.617 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003125/0.493, allocations: 1.495 MB / 0.5846 GB, free: 6.117 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008981/0.4939, allocations: 252 kB / 0.5849 GB, free: 5.871 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009222/0.5032, allocations: 2.995 MB / 0.5878 GB, free: 2.871 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001138/0.5043, allocations: 0.6232 MB / 0.5884 GB, free: 2.246 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002055/0.5064, allocations: 1.043 MB / 0.5894 GB, free: 1.199 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01669/0.5231, allocations: 6.109 MB / 0.5954 GB, free: 11.07 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.107e-05/0.5231, allocations: 0 / 0.5954 GB, free: 11.07 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.5231, allocations: 0 / 0.5954 GB, free: 11.07 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001516/0.5232, allocations: 0 / 0.5954 GB, free: 11.07 MB / 446.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.007887/0.5311, allocations: 2.931 MB / 0.5983 GB, free: 8.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.087e-05/0.5312, allocations: 8.031 kB / 0.5983 GB, free: 8.082 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004322/0.5316, allocations: 262 kB / 0.5985 GB, free: 7.816 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002377/0.534, allocations: 486.6 kB / 0.599 GB, free: 7.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002527/0.5365, allocations: 1.046 MB / 0.6 GB, free: 6.266 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003302/0.5368, allocations: 357.8 kB / 0.6003 GB, free: 5.867 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000472/0.5373, allocations: 192.3 kB / 0.6005 GB, free: 5.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004782/0.5421, allocations: 2.535 MB / 0.603 GB, free: 3.109 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.834e-05/0.5421, allocations: 0 / 0.603 GB, free: 3.109 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002088/0.5423, allocations: 79.94 kB / 0.6031 GB, free: 3.031 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.954e-05/0.5424, allocations: 44 kB / 0.6031 GB, free: 2.988 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005848/0.5482, allocations: 3.176 MB / 0.6062 GB, free: 15.8 MB / 462.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.01649/0.5647, allocations: 7.11 MB / 0.6132 GB, free: 8.578 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01022/0.5749, allocations: 4.659 MB / 0.6177 GB, free: 3.906 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002503/0.5774, allocations: 1.153 MB / 0.6188 GB, free: 2.754 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01506/0.5925, allocations: 5.777 MB / 0.6245 GB, free: 12.95 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.767e-05/0.5926, allocations: 51.88 kB / 0.6245 GB, free: 12.88 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001523/0.5941, allocations: 314.7 kB / 0.6248 GB, free: 12.57 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 5.089e-06/0.5941, allocations: 0 / 0.6248 GB, free: 12.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03154/0.6256, allocations: 7.35 MB / 0.632 GB, free: 5.18 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.279e-05/0.6257, allocations: 73.41 kB / 0.6321 GB, free: 5.098 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.6272, allocations: 0.9283 MB / 0.633 GB, free: 4.152 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003442/0.6276, allocations: 57.7 kB / 0.633 GB, free: 4.09 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008219/0.6284, allocations: 0.8286 MB / 0.6339 GB, free: 3.25 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007495/0.6291, allocations: 0.6622 MB / 0.6345 GB, free: 2.582 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006651/0.6298, allocations: 415.9 kB / 0.6349 GB, free: 2.168 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.6299, allocations: 305.1 kB / 0.6352 GB, free: 1.867 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001602/0.6315, allocations: 0.789 MB / 0.636 GB, free: 1.074 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002186/0.6337, allocations: 1.375 MB / 0.6373 GB, free: 15.44 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004128/0.6379, allocations: 2.364 MB / 0.6396 GB, free: 12.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.31e-05/0.6379, allocations: 8 kB / 0.6396 GB, free: 12.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01286/0.6507, allocations: 3.383 MB / 0.6429 GB, free: 9.41 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.6508, allocations: 12 kB / 0.6429 GB, free: 9.398 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-05/0.6508, allocations: 23.98 kB / 0.643 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003948/0.6547, allocations: 0.8187 MB / 0.6438 GB, free: 8.547 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002308/0.6571, allocations: 0.5187 MB / 0.6443 GB, free: 8.027 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006058/0.6631, allocations: 3.666 MB / 0.6478 GB, free: 4.133 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.6649, allocations: 71.98 kB / 0.6479 GB, free: 4.062 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/0.6652, allocations: 124 kB / 0.648 GB, free: 3.941 MB / 494.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.001015/0.6662, allocations: 397.1 kB / 0.6484 GB, free: 3.543 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004137/0.6666, allocations: 155 kB / 0.6486 GB, free: 3.391 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01247/0.6791, allocations: 3.323 MB / 0.6518 GB, free: 48 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.768e-05/0.6791, allocations: 27.97 kB / 0.6518 GB, free: 20 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/0.6791, allocations: 4 kB / 0.6518 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.713e-05/0.6791, allocations: 11.91 kB / 0.6518 GB, free: 4 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.016/0.6951, allocations: 4.934 MB / 0.6567 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.925e-05/0.6952, allocations: 0 / 0.6567 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001825/0.697, allocations: 363.5 kB / 0.657 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003907/0.7009, allocations: 0.7905 MB / 0.6578 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00043/0.7013, allocations: 67.94 kB / 0.6578 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005912/0.7072, allocations: 3.557 MB / 0.6613 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7072, allocations: 0 / 0.6613 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01473/0.722, allocations: 4.245 MB / 0.6655 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004188/0.7224, allocations: 138.9 kB / 0.6656 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003683/0.7228, allocations: 36 kB / 0.6656 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.7238, allocations: 39.98 kB / 0.6657 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000535/0.7243, allocations: 205.6 kB / 0.6659 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001926/0.7245, allocations: 75.95 kB / 0.6659 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009219/0.7254, allocations: 0.582 MB / 0.6665 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.7254, allocations: 0 / 0.6665 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003714/0.7292, allocations: 1.188 MB / 0.6677 GB, free: 15.46 MB / 0.5137 GB 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.01757/0.7467, allocations: 6.049 MB / 0.6736 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005334/0.7521, allocations: 2.335 MB / 0.6759 GB, free: 7.008 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.7521, allocations: 0 / 0.6759 GB, free: 7.008 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002731/0.7548, allocations: 1.31 MB / 0.6771 GB, free: 5.672 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.7564, allocations: 321.4 kB / 0.6774 GB, free: 5.359 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04126/0.7976, allocations: 15.84 MB / 0.6929 GB, free: 4.738 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009033/0.7985, allocations: 0.7519 MB / 0.6937 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001691/0.8002, allocations: 408.1 kB / 0.694 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001358/0.8016, allocations: 0.8388 MB / 0.6949 GB, free: 2.711 MB / 0.5294 GB Notification: Performance of SimCode: time 1.453e-06/0.8016, allocations: 0 / 0.6949 GB, free: 2.711 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3298/1.131, allocations: 63.45 MB / 0.7568 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.54/16.67, allocations: 7.594 kB / 0.7568 GB, free: 170.5 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate_fmu --startTime=0 --stopTime=0.05 --stepSize=2e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate.fmu > Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.408484999090433] Failed to read output from testmodel.py, exit status != 0: 16.82500240812078 16.843604797 16.316826151 Calling exit ...