Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001474/0.001474, allocations: 113.2 kB / 19.73 MB, free: 2.242 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.00144/0.00144, allocations: 221.2 kB / 23.04 MB, free: 5.074 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.455/1.455, allocations: 230.6 MB / 256.8 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1391/0.1391, allocations: 23.89 MB / 337.1 MB, free: 11.2 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="cs",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.002029/0.002029, allocations: 63.91 kB / 472 MB, free: 7.68 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3068, allocations: 59.86 MB / 0.5194 GB, free: 9.605 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.04093/0.3477, allocations: 29.44 MB / 0.5481 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03767/0.3854, allocations: 28.9 MB / 0.5764 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00191/0.3873, allocations: 35.69 kB / 0.5764 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002435/0.3897, allocations: 0.57 MB / 0.577 GB, free: 15.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00896/0.3987, allocations: 2.619 MB / 0.5795 GB, free: 12.53 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01023/0.4089, allocations: 3.569 MB / 0.583 GB, free: 8.938 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004409/0.4133, allocations: 2.735 MB / 0.5857 GB, free: 6.195 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002086/0.4154, allocations: 1.368 MB / 0.587 GB, free: 4.789 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002134/0.4175, allocations: 1.442 MB / 0.5884 GB, free: 3.344 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003036/0.4206, allocations: 1.651 MB / 0.59 GB, free: 1.688 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007085/0.4213, allocations: 252 kB / 0.5903 GB, free: 1.441 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01077/0.4321, allocations: 3.202 MB / 0.5934 GB, free: 14.23 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001049/0.4331, allocations: 0.6193 MB / 0.594 GB, free: 13.61 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001827/0.4349, allocations: 1.202 MB / 0.5952 GB, free: 12.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01542/0.4504, allocations: 6.136 MB / 0.6012 GB, free: 6.246 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.4504, allocations: 0 / 0.6012 GB, free: 6.246 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4504, allocations: 0 / 0.6012 GB, free: 6.246 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.979e-05/0.4505, allocations: 0 / 0.6012 GB, free: 6.246 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.008041/0.4585, allocations: 2.938 MB / 0.604 GB, free: 3.262 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.4586, allocations: 12.03 kB / 0.6041 GB, free: 3.25 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.112e-05/0.4586, allocations: 47.84 kB / 0.6041 GB, free: 3.203 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004418/0.4591, allocations: 258 kB / 0.6043 GB, free: 2.941 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002483/0.4615, allocations: 482.6 kB / 0.6048 GB, free: 2.469 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002654/0.4642, allocations: 1.042 MB / 0.6058 GB, free: 1.398 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003333/0.4645, allocations: 353.8 kB / 0.6062 GB, free: 1.004 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005809/0.4651, allocations: 196.1 kB / 0.6063 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005552/0.4707, allocations: 2.535 MB / 0.6088 GB, free: 14.24 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.208e-05/0.4707, allocations: 0 / 0.6088 GB, free: 14.24 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002663/0.471, allocations: 76 kB / 0.6089 GB, free: 14.16 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.738e-05/0.471, allocations: 47.94 kB / 0.6089 GB, free: 14.12 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006528/0.4776, allocations: 3.208 MB / 0.6121 GB, free: 10.91 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.01931/0.4969, allocations: 8.396 MB / 0.6203 GB, free: 2.215 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/0.5074, allocations: 4.775 MB / 0.6249 GB, free: 13.42 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002476/0.5099, allocations: 1.16 MB / 0.6261 GB, free: 12.26 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01478/0.5247, allocations: 6.066 MB / 0.632 GB, free: 6.168 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.761e-05/0.5247, allocations: 51.86 kB / 0.632 GB, free: 6.105 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001575/0.5263, allocations: 310.7 kB / 0.6323 GB, free: 5.801 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 5.912e-06/0.5263, allocations: 0 / 0.6323 GB, free: 5.801 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03344/0.5598, allocations: 7.358 MB / 0.6395 GB, free: 14.39 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.47e-05/0.5598, allocations: 73.41 kB / 0.6396 GB, free: 14.31 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001389/0.5612, allocations: 0.9013 MB / 0.6405 GB, free: 13.39 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004493/0.5617, allocations: 57.7 kB / 0.6405 GB, free: 13.33 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006992/0.5624, allocations: 0.8247 MB / 0.6413 GB, free: 12.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009861/0.5634, allocations: 0.67 MB / 0.642 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007724/0.5641, allocations: 415.9 kB / 0.6424 GB, free: 11.41 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.5643, allocations: 305.1 kB / 0.6427 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/0.566, allocations: 0.789 MB / 0.6434 GB, free: 10.31 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002321/0.5683, allocations: 1.375 MB / 0.6448 GB, free: 8.676 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004553/0.5729, allocations: 2.364 MB / 0.6471 GB, free: 6.059 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.842e-05/0.5729, allocations: 4 kB / 0.6471 GB, free: 6.055 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01406/0.587, allocations: 3.38 MB / 0.6504 GB, free: 2.656 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.587, allocations: 20.25 kB / 0.6504 GB, free: 2.637 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.995e-05/0.587, allocations: 19.98 kB / 0.6504 GB, free: 2.617 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004179/0.5912, allocations: 0.814 MB / 0.6512 GB, free: 1.797 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002364/0.5936, allocations: 0.5187 MB / 0.6517 GB, free: 1.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006524/0.6001, allocations: 3.694 MB / 0.6553 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00211/0.6022, allocations: 76.17 kB / 0.6554 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004187/0.6026, allocations: 127.9 kB / 0.6555 GB, free: 13.16 MB / 0.4981 GB 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.001195/0.6038, allocations: 397.6 kB / 0.6559 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005616/0.6044, allocations: 159 kB / 0.6561 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01323/0.6176, allocations: 3.319 MB / 0.6593 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-05/0.6177, allocations: 20 kB / 0.6593 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.6177, allocations: 7.875 kB / 0.6593 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.184e-05/0.6177, allocations: 15.97 kB / 0.6594 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01718/0.6349, allocations: 5.203 MB / 0.6644 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.893e-05/0.6349, allocations: 4 kB / 0.6644 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001986/0.6369, allocations: 359.5 kB / 0.6648 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004045/0.641, allocations: 0.8022 MB / 0.6656 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004685/0.6414, allocations: 59.95 kB / 0.6656 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005748/0.6472, allocations: 3.588 MB / 0.6691 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.6472, allocations: 0 / 0.6691 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01506/0.6623, allocations: 4.234 MB / 0.6733 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004513/0.6627, allocations: 138.9 kB / 0.6734 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004405/0.6631, allocations: 36 kB / 0.6734 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.6643, allocations: 43.98 kB / 0.6735 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005663/0.6648, allocations: 205.6 kB / 0.6737 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000215/0.665, allocations: 75.95 kB / 0.6737 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008606/0.6659, allocations: 0.5742 MB / 0.6743 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6659, allocations: 0 / 0.6743 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003959/0.6699, allocations: 1.196 MB / 0.6755 GB, free: 8.387 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.01901/0.6889, allocations: 6.049 MB / 0.6814 GB, free: 2.301 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006005/0.6949, allocations: 2.343 MB / 0.6837 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.471e-06/0.6949, allocations: 4.125 kB / 0.6837 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003338/0.6982, allocations: 1.314 MB / 0.685 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002028/0.7003, allocations: 323.2 kB / 0.6853 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04585/0.7461, allocations: 15.84 MB / 0.7007 GB, free: 13.65 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001265/0.7474, allocations: 1.325 MB / 0.702 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001707/0.7491, allocations: 420 kB / 0.7024 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001316/0.7504, allocations: 0.8349 MB / 0.7032 GB, free: 11.04 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/0.7504, allocations: 0 / 0.7032 GB, free: 11.04 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.367/1.117, allocations: 62.71 MB / 0.7645 GB, free: 165 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.69/19.8, allocations: 10.55 kB / 0.7645 GB, free: 165 MB / 0.5606 GB " [Timeout remaining time 640] (rm -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_AcidBase_Phosphate_fmu --startTime=0 --stopTime=0.05 --stepSize=2e-05 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_AcidBase_Phosphate.fmu > Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.779777457006276] Failed to read output from testmodel.py, exit status != 0: 20.01716504304204 20.037461285 19.582857326 Calling exit ...