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.0008158/0.0008158, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0008899/0.0008899, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 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 0.8171/0.8171, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.0807/0.0807, allocations: 17.45 MB / 276.6 MB, free: 11.76 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 411.6 MB, free: 256 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.725e-06/8.977e-06, allocations: 6.281 kB / 411.6 MB, free: 248 kB / 378.7 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.01886/0.01887, allocations: 28.92 MB / 440.5 MB, free: 3.383 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1475/0.1663, allocations: 25.29 MB / 465.8 MB, free: 49.24 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006429/0.167, allocations: 31.69 kB / 465.9 MB, free: 49.23 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007752/0.1678, allocations: 0.5289 MB / 466.4 MB, free: 48.95 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002974/0.1707, allocations: 2.644 MB / 469 MB, free: 47.39 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004357/0.1751, allocations: 3.681 MB / 472.7 MB, free: 45.23 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001293/0.1764, allocations: 2.809 MB / 475.5 MB, free: 43.84 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007232/0.1771, allocations: 1.356 MB / 476.9 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008752/0.178, allocations: 1.96 MB / 478.8 MB, free: 42.5 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009003/0.1789, allocations: 1.358 MB / 480.2 MB, free: 42.16 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000193/0.1791, allocations: 252.2 kB / 480.4 MB, free: 42.16 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003291/0.1824, allocations: 3.031 MB / 483.5 MB, free: 41.47 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000243/0.1826, allocations: 0.6236 MB / 484.1 MB, free: 41.09 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004294/0.183, allocations: 0.9054 MB / 485 MB, free: 40.7 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003894/0.1869, allocations: 6.508 MB / 491.5 MB, free: 37.98 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1869, allocations: 1.719 kB / 491.5 MB, free: 37.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1869, allocations: 0 / 491.5 MB, free: 37.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.1869, allocations: 0 / 491.5 MB, free: 37.98 MB / 410.7 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.002941/0.1899, allocations: 2.906 MB / 494.4 MB, free: 36.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.1899, allocations: 10.25 kB / 494.4 MB, free: 36.36 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002322/0.1902, allocations: 260.5 kB / 494.7 MB, free: 36.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.1912, allocations: 475.1 kB / 495.2 MB, free: 36.06 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.1923, allocations: 1.049 MB / 496.2 MB, free: 35.47 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.1925, allocations: 355.4 kB / 496.5 MB, free: 35.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002275/0.1927, allocations: 194.1 kB / 496.7 MB, free: 35.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002603/0.1953, allocations: 2.53 MB / 499.3 MB, free: 34.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/0.1953, allocations: 1.406 kB / 499.3 MB, free: 34.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/0.1955, allocations: 75.44 kB / 499.3 MB, free: 34.08 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.877e-05/0.1955, allocations: 44.56 kB / 499.4 MB, free: 34.08 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0033/0.1988, allocations: 3.178 MB / 0.4908 GB, free: 33.13 MB / 410.7 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.007792/0.2066, allocations: 7.122 MB / 0.4977 GB, free: 29.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004661/0.2112, allocations: 4.66 MB / 0.5023 GB, free: 27.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009391/0.2122, allocations: 1.154 MB / 0.5034 GB, free: 26.86 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005575/0.2178, allocations: 5.787 MB / 0.5091 GB, free: 21.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.2178, allocations: 43.88 kB / 0.5091 GB, free: 21.29 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005466/0.2183, allocations: 306.7 kB / 0.5094 GB, free: 21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=158): time 2.775e-06/0.2183, allocations: 2.719 kB / 0.5094 GB, free: 21 MB / 410.7 MB Notification: Performance of matching and sorting (n=187): time 0.01264/0.231, allocations: 7.351 MB / 0.5166 GB, free: 13.67 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.231, allocations: 69.41 kB / 0.5167 GB, free: 13.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005342/0.2315, allocations: 0.938 MB / 0.5176 GB, free: 12.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.546e-05/0.2316, allocations: 57.7 kB / 0.5176 GB, free: 12.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001997/0.2318, allocations: 0.8247 MB / 0.5184 GB, free: 11.74 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/0.232, allocations: 0.6545 MB / 0.5191 GB, free: 11.08 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003069/0.2323, allocations: 411.9 kB / 0.5195 GB, free: 10.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.398e-05/0.2323, allocations: 301.1 kB / 0.5197 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007325/0.2331, allocations: 0.7851 MB / 0.5205 GB, free: 9.586 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008586/0.2339, allocations: 1.382 MB / 0.5219 GB, free: 7.945 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001807/0.2357, allocations: 2.356 MB / 0.5242 GB, free: 5.359 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.2358, allocations: 7.938 kB / 0.5242 GB, free: 5.352 MB / 410.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.005389/0.2411, allocations: 3.382 MB / 0.5275 GB, free: 1.988 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.2412, allocations: 15.94 kB / 0.5275 GB, free: 1.973 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.2412, allocations: 20 kB / 0.5275 GB, free: 1.953 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001611/0.2428, allocations: 0.8219 MB / 0.5283 GB, free: 1.156 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008211/0.2436, allocations: 0.5214 MB / 0.5288 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003137/0.2467, allocations: 3.651 MB / 0.5324 GB, free: 12.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006336/0.2474, allocations: 78.64 kB / 0.5325 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.2475, allocations: 119.9 kB / 0.5326 GB, free: 12.58 MB / 426.7 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.0004658/0.248, allocations: 400.7 kB / 0.533 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.2481, allocations: 159 kB / 0.5331 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006061/0.2542, allocations: 3.322 MB / 0.5364 GB, free: 8.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.2542, allocations: 20 kB / 0.5364 GB, free: 8.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.2542, allocations: 6.656 kB / 0.5364 GB, free: 8.746 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.2542, allocations: 10.88 kB / 0.5364 GB, free: 8.738 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007619/0.2618, allocations: 4.941 MB / 0.5412 GB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.2619, allocations: 0 / 0.5412 GB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007194/0.2626, allocations: 373 kB / 0.5416 GB, free: 3.395 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001666/0.2642, allocations: 0.7888 MB / 0.5423 GB, free: 2.625 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.239e-05/0.2643, allocations: 67.95 kB / 0.5424 GB, free: 2.559 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002633/0.267, allocations: 3.55 MB / 0.5459 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.267, allocations: 2.688 kB / 0.5459 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006921/0.2739, allocations: 4.231 MB / 0.55 GB, free: 10.56 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000201/0.2741, allocations: 138.9 kB / 0.5501 GB, free: 10.42 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.2742, allocations: 43.92 kB / 0.5502 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004402/0.2747, allocations: 38.69 kB / 0.5502 GB, free: 10.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002922/0.2749, allocations: 205.6 kB / 0.5504 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.509e-05/0.275, allocations: 79.95 kB / 0.5505 GB, free: 10.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004782/0.2755, allocations: 0.578 MB / 0.5511 GB, free: 9.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 3e-08/0.2755, allocations: 0 / 0.5511 GB, free: 9.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002442/0.278, allocations: 1.192 MB / 0.5522 GB, free: 8.285 MB / 442.7 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.009134/0.2871, allocations: 6.089 MB / 0.5582 GB, free: 2.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002754/0.2899, allocations: 2.347 MB / 0.5605 GB, free: 15.89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2899, allocations: 0 / 0.5605 GB, free: 15.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001584/0.2914, allocations: 1.297 MB / 0.5617 GB, free: 14.56 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009167/0.2924, allocations: 325 kB / 0.562 GB, free: 14.29 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0201/0.3124, allocations: 15.77 MB / 0.5774 GB, free: 13.82 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.3129, allocations: 0.7453 MB / 0.5782 GB, free: 13.07 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0008384/0.3138, allocations: 417.1 kB / 0.5786 GB, free: 12.78 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007295/0.3145, allocations: 0.8427 MB / 0.5794 GB, free: 11.94 MB / 474.7 MB Notification: Performance of SimCode: time 6.71e-07/0.3145, allocations: 0 / 0.5794 GB, free: 11.94 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1939/0.5083, allocations: 63.65 MB / 0.6415 GB, free: 148.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.7/9.209, allocations: 8.766 kB / 0.6415 GB, free: 148.6 MB / 0.4948 GB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2e-05 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: 10.957747961394489] Failed to read output from testmodel.py, exit status != 0: 9.323680555447936 9.331136793 9.14276537 Calling exit ...