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.001361/0.001361, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001465/0.001465, allocations: 218.1 kB / 23.03 MB, free: 4.922 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.508/1.508, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1366/0.1366, allocations: 23.9 MB / 337.1 MB, free: 10.92 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.002045/0.002045, allocations: 63.91 kB / 471.9 MB, free: 7.449 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3226, allocations: 59.87 MB / 0.5194 GB, free: 9.555 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.07426/0.3968, allocations: 28.31 MB / 0.547 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03536/0.4322, allocations: 25.28 MB / 0.5717 GB, free: 4.246 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001684/0.4339, allocations: 31.75 kB / 0.5717 GB, free: 4.215 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001813/0.4357, allocations: 0.5233 MB / 0.5722 GB, free: 3.688 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007916/0.4436, allocations: 2.569 MB / 0.5747 GB, free: 1.102 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009699/0.4533, allocations: 3.562 MB / 0.5782 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004019/0.4573, allocations: 2.72 MB / 0.5809 GB, free: 10.79 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00193/0.4593, allocations: 1.372 MB / 0.5822 GB, free: 9.383 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002046/0.4613, allocations: 1.446 MB / 0.5836 GB, free: 7.934 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002822/0.4641, allocations: 1.659 MB / 0.5852 GB, free: 6.27 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000635/0.4648, allocations: 248 kB / 0.5855 GB, free: 6.027 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008284/0.4731, allocations: 3.073 MB / 0.5885 GB, free: 2.949 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009312/0.474, allocations: 0.6154 MB / 0.5891 GB, free: 2.332 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001519/0.4755, allocations: 1.039 MB / 0.5901 GB, free: 1.289 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01291/0.4884, allocations: 6.117 MB / 0.5961 GB, free: 11.15 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4884, allocations: 4 kB / 0.5961 GB, free: 11.14 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4884, allocations: 0 / 0.5961 GB, free: 11.14 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.592e-05/0.4885, allocations: 0 / 0.5961 GB, free: 11.14 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.007439/0.4959, allocations: 2.923 MB / 0.5989 GB, free: 8.176 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.496, allocations: 12.03 kB / 0.5989 GB, free: 8.164 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.757e-05/0.496, allocations: 47.84 kB / 0.599 GB, free: 8.117 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003604/0.4964, allocations: 262 kB / 0.5992 GB, free: 7.852 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002301/0.4987, allocations: 482.6 kB / 0.5997 GB, free: 7.379 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.5007, allocations: 1.038 MB / 0.6007 GB, free: 6.312 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002863/0.501, allocations: 361.8 kB / 0.601 GB, free: 5.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003994/0.5014, allocations: 192.1 kB / 0.6012 GB, free: 5.723 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004583/0.506, allocations: 2.531 MB / 0.6037 GB, free: 3.156 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.672e-05/0.506, allocations: 3.984 kB / 0.6037 GB, free: 3.152 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002332/0.5063, allocations: 76 kB / 0.6038 GB, free: 3.078 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.824e-05/0.5063, allocations: 44 kB / 0.6038 GB, free: 3.035 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005523/0.5118, allocations: 3.211 MB / 0.607 GB, free: 15.82 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.01508/0.5269, allocations: 7.114 MB / 0.6139 GB, free: 8.586 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009641/0.5365, allocations: 4.658 MB / 0.6185 GB, free: 3.914 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002255/0.5388, allocations: 1.164 MB / 0.6196 GB, free: 2.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01347/0.5523, allocations: 5.771 MB / 0.6252 GB, free: 12.95 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.882e-05/0.5523, allocations: 55.88 kB / 0.6253 GB, free: 12.88 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001522/0.5538, allocations: 306.7 kB / 0.6256 GB, free: 12.58 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 5.661e-06/0.5538, allocations: 7.938 kB / 0.6256 GB, free: 12.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03245/0.5863, allocations: 7.358 MB / 0.6328 GB, free: 5.172 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.918e-05/0.5863, allocations: 73.41 kB / 0.6328 GB, free: 5.09 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/0.5877, allocations: 0.9013 MB / 0.6337 GB, free: 4.172 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003515/0.588, allocations: 57.7 kB / 0.6338 GB, free: 4.109 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007073/0.5887, allocations: 0.8209 MB / 0.6346 GB, free: 3.277 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008331/0.5896, allocations: 0.67 MB / 0.6352 GB, free: 2.602 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007018/0.5903, allocations: 415.9 kB / 0.6356 GB, free: 2.188 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.5904, allocations: 305.1 kB / 0.6359 GB, free: 1.887 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/0.592, allocations: 0.789 MB / 0.6367 GB, free: 1.094 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002065/0.594, allocations: 1.375 MB / 0.638 GB, free: 15.46 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003747/0.5978, allocations: 2.356 MB / 0.6403 GB, free: 12.85 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.4e-05/0.5978, allocations: 4 kB / 0.6403 GB, free: 12.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01271/0.6105, allocations: 3.387 MB / 0.6436 GB, free: 9.438 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/0.6105, allocations: 12 kB / 0.6437 GB, free: 9.426 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.714e-05/0.6105, allocations: 16 kB / 0.6437 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0041/0.6146, allocations: 0.8225 MB / 0.6445 GB, free: 8.578 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002126/0.6168, allocations: 0.5149 MB / 0.645 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005997/0.6228, allocations: 3.669 MB / 0.6486 GB, free: 4.168 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.6244, allocations: 71.98 kB / 0.6486 GB, free: 4.098 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002724/0.6247, allocations: 120 kB / 0.6487 GB, free: 3.98 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.0008201/0.6255, allocations: 401.6 kB / 0.6491 GB, free: 3.578 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003666/0.6259, allocations: 155 kB / 0.6493 GB, free: 3.426 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01305/0.639, allocations: 3.334 MB / 0.6525 GB, free: 72 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.88e-05/0.639, allocations: 20 kB / 0.6525 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.639, allocations: 3.938 kB / 0.6526 GB, free: 48 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.602e-05/0.6391, allocations: 7.969 kB / 0.6526 GB, free: 40 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01681/0.6559, allocations: 4.934 MB / 0.6574 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-05/0.6559, allocations: 0 / 0.6574 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001954/0.6578, allocations: 367.5 kB / 0.6577 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004034/0.6619, allocations: 0.7906 MB / 0.6585 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003778/0.6623, allocations: 75.94 kB / 0.6586 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005742/0.668, allocations: 3.55 MB / 0.662 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.668, allocations: 0 / 0.662 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/0.6828, allocations: 4.242 MB / 0.6662 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003993/0.6832, allocations: 135 kB / 0.6663 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003938/0.6836, allocations: 32 kB / 0.6663 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.6847, allocations: 43.98 kB / 0.6664 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005554/0.6853, allocations: 205.6 kB / 0.6666 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002051/0.6855, allocations: 75.95 kB / 0.6666 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000859/0.6864, allocations: 0.5742 MB / 0.6672 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6864, allocations: 4 kB / 0.6672 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003995/0.6903, allocations: 1.196 MB / 0.6684 GB, free: 15.5 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.01812/0.7085, allocations: 6.045 MB / 0.6743 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005438/0.7139, allocations: 2.343 MB / 0.6766 GB, free: 7.047 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.7139, allocations: 0 / 0.6766 GB, free: 7.047 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002993/0.7169, allocations: 1.31 MB / 0.6779 GB, free: 5.711 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001884/0.7188, allocations: 316.5 kB / 0.6782 GB, free: 5.406 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0425/0.7613, allocations: 15.85 MB / 0.6936 GB, free: 4.766 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008645/0.7621, allocations: 0.748 MB / 0.6944 GB, free: 3.98 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001724/0.7639, allocations: 408.1 kB / 0.6948 GB, free: 3.578 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001377/0.7652, allocations: 0.8427 MB / 0.6956 GB, free: 2.738 MB / 0.5294 GB Notification: Performance of SimCode: time 1.643e-06/0.7652, allocations: 0 / 0.6956 GB, free: 2.738 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3137/1.079, allocations: 63.83 MB / 0.7579 GB, free: 170.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.81/19.88, allocations: 14.16 kB / 0.7579 GB, free: 170.8 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 os._exit(0), Time elapsed: 22.68574965908192] Failed to read output from testmodel.py, exit status != 0: 20.089590108022094 20.101525719 19.61052281 Calling exit ...