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.001323/0.001323, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.00149/0.00149, allocations: 218.5 kB / 22.25 MB, free: 5.105 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.476/1.476, allocations: 230.6 MB / 256 MB, free: 7.809 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.1503/0.1503, allocations: 23.88 MB / 336.3 MB, free: 10.98 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.002019/0.002019, allocations: 59.91 kB / 471.1 MB, free: 7.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3262, allocations: 59.86 MB / 0.5185 GB, free: 9.578 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.07481/0.401, allocations: 28.58 MB / 0.5464 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03912/0.4401, allocations: 25.3 MB / 0.5712 GB, free: 4.008 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003081/0.4432, allocations: 35.69 kB / 0.5712 GB, free: 3.973 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002695/0.4459, allocations: 0.5116 MB / 0.5717 GB, free: 3.457 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009545/0.4554, allocations: 2.569 MB / 0.5742 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01093/0.4664, allocations: 3.577 MB / 0.5777 GB, free: 13.27 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004917/0.4713, allocations: 2.72 MB / 0.5803 GB, free: 10.55 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002052/0.4733, allocations: 1.376 MB / 0.5817 GB, free: 9.133 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002224/0.4756, allocations: 1.446 MB / 0.5831 GB, free: 7.684 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002985/0.4785, allocations: 1.651 MB / 0.5847 GB, free: 6.027 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005302/0.4791, allocations: 248 kB / 0.5849 GB, free: 5.785 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00961/0.4887, allocations: 3.077 MB / 0.588 GB, free: 2.703 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001196/0.4899, allocations: 0.6233 MB / 0.5886 GB, free: 2.078 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00178/0.4917, allocations: 1.035 MB / 0.5896 GB, free: 1.039 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01652/0.5082, allocations: 6.105 MB / 0.5955 GB, free: 10.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.728e-06/0.5082, allocations: 3.938 kB / 0.5955 GB, free: 10.91 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5082, allocations: 0 / 0.5955 GB, free: 10.91 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.9e-05/0.5083, allocations: 0 / 0.5955 GB, free: 10.91 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.008336/0.5166, allocations: 2.927 MB / 0.5984 GB, free: 7.934 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.926e-05/0.5167, allocations: 16.02 kB / 0.5984 GB, free: 7.918 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003906/0.5171, allocations: 262 kB / 0.5987 GB, free: 7.652 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002372/0.5195, allocations: 478.6 kB / 0.5991 GB, free: 7.184 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002311/0.5218, allocations: 1.038 MB / 0.6001 GB, free: 6.117 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003097/0.5221, allocations: 365.8 kB / 0.6005 GB, free: 5.711 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000412/0.5225, allocations: 184.3 kB / 0.6007 GB, free: 5.531 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004772/0.5273, allocations: 2.539 MB / 0.6031 GB, free: 2.957 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.027e-05/0.5273, allocations: 0 / 0.6031 GB, free: 2.957 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002429/0.5275, allocations: 72 kB / 0.6032 GB, free: 2.887 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.925e-05/0.5276, allocations: 44 kB / 0.6032 GB, free: 2.844 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00576/0.5333, allocations: 3.176 MB / 0.6063 GB, free: 15.66 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.01669/0.55, allocations: 7.126 MB / 0.6133 GB, free: 8.418 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009943/0.56, allocations: 4.65 MB / 0.6178 GB, free: 3.754 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002536/0.5625, allocations: 1.16 MB / 0.619 GB, free: 2.594 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01486/0.5774, allocations: 5.778 MB / 0.6246 GB, free: 12.79 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.028e-05/0.5774, allocations: 47.86 kB / 0.6247 GB, free: 12.73 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0016/0.579, allocations: 318.6 kB / 0.625 GB, free: 12.41 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.439e-06/0.579, allocations: 0 / 0.625 GB, free: 12.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03454/0.6136, allocations: 7.35 MB / 0.6322 GB, free: 5.02 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.807e-05/0.6136, allocations: 77.41 kB / 0.6322 GB, free: 4.934 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/0.6153, allocations: 0.9283 MB / 0.6331 GB, free: 3.988 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004583/0.6157, allocations: 53.7 kB / 0.6332 GB, free: 3.93 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008252/0.6166, allocations: 0.8286 MB / 0.634 GB, free: 3.09 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009693/0.6175, allocations: 0.6662 MB / 0.6346 GB, free: 2.418 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007396/0.6183, allocations: 411.9 kB / 0.635 GB, free: 2.008 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.6184, allocations: 309.1 kB / 0.6353 GB, free: 1.703 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/0.62, allocations: 0.789 MB / 0.6361 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002317/0.6223, allocations: 1.375 MB / 0.6374 GB, free: 15.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004086/0.6264, allocations: 2.36 MB / 0.6397 GB, free: 12.66 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/0.6264, allocations: 8 kB / 0.6398 GB, free: 12.65 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01359/0.64, allocations: 3.387 MB / 0.6431 GB, free: 9.246 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.917e-05/0.6401, allocations: 16 kB / 0.6431 GB, free: 9.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.666e-05/0.6401, allocations: 16.91 kB / 0.6431 GB, free: 9.215 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004317/0.6444, allocations: 0.8179 MB / 0.6439 GB, free: 8.387 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002286/0.6467, allocations: 0.5148 MB / 0.6444 GB, free: 7.871 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006452/0.6531, allocations: 3.665 MB / 0.648 GB, free: 3.977 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.6551, allocations: 67.98 kB / 0.648 GB, free: 3.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003498/0.6555, allocations: 123.9 kB / 0.6482 GB, free: 3.789 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.001078/0.6566, allocations: 396.4 kB / 0.6485 GB, free: 3.395 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005195/0.6571, allocations: 159 kB / 0.6487 GB, free: 3.238 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01407/0.6712, allocations: 3.327 MB / 0.6519 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.609e-05/0.6712, allocations: 16 kB / 0.652 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.6712, allocations: 7.938 kB / 0.652 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.35e-05/0.6713, allocations: 15.89 kB / 0.652 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01733/0.6886, allocations: 4.93 MB / 0.6568 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.163e-05/0.6886, allocations: 3.984 kB / 0.6568 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002076/0.6907, allocations: 363.6 kB / 0.6571 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0048/0.6955, allocations: 0.8022 MB / 0.6579 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004871/0.696, allocations: 67.89 kB / 0.658 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006102/0.7021, allocations: 3.553 MB / 0.6615 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7021, allocations: 0 / 0.6615 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01552/0.7176, allocations: 4.238 MB / 0.6656 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005665/0.7182, allocations: 139 kB / 0.6657 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003496/0.7185, allocations: 32 kB / 0.6658 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.7196, allocations: 39.98 kB / 0.6658 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005593/0.7202, allocations: 205.6 kB / 0.666 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002072/0.7204, allocations: 87.94 kB / 0.6661 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008884/0.7213, allocations: 0.5703 MB / 0.6666 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.7213, allocations: 0 / 0.6666 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00407/0.7253, allocations: 1.196 MB / 0.6678 GB, free: 15.31 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.018/0.7433, allocations: 6.049 MB / 0.6737 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005577/0.7489, allocations: 2.331 MB / 0.676 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.7489, allocations: 4 kB / 0.676 GB, free: 6.859 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003054/0.752, allocations: 1.313 MB / 0.6773 GB, free: 5.52 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001905/0.7539, allocations: 313.8 kB / 0.6776 GB, free: 5.215 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04446/0.7983, allocations: 15.85 MB / 0.6931 GB, free: 4.59 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000883/0.7992, allocations: 0.7519 MB / 0.6938 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001749/0.801, allocations: 420.1 kB / 0.6942 GB, free: 3.387 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001393/0.8024, allocations: 0.8271 MB / 0.695 GB, free: 2.562 MB / 0.5294 GB Notification: Performance of SimCode: time 1.062e-06/0.8024, allocations: 0 / 0.695 GB, free: 2.562 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4257/1.228, allocations: 64.1 MB / 0.7576 GB, free: 171.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.41/16.64, allocations: 7.984 kB / 0.7576 GB, free: 171.6 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.41711035600747] Failed to read output from testmodel.py, exit status != 0: 16.790437032992486 16.803985621 16.291985799 Calling exit ...