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.001168/0.001168, 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.001405/0.001405, 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.9215/0.9215, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.08759/0.08759, allocations: 17.37 MB / 276.6 MB, free: 11.84 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 411.4 MB, free: 424 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.721e-05/1.873e-05, allocations: 8.047 kB / 411.5 MB, free: 416 kB / 378.7 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.02468/0.0247, allocations: 28.93 MB / 440.4 MB, free: 3.551 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1823/0.207, allocations: 25.29 MB / 465.7 MB, free: 49.5 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.2082, allocations: 34.69 kB / 465.7 MB, free: 49.48 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001089/0.2093, allocations: 0.5293 MB / 466.2 MB, free: 49.2 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005277/0.2146, allocations: 2.643 MB / 468.9 MB, free: 47.64 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007827/0.2224, allocations: 3.675 MB / 472.6 MB, free: 45.49 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003074/0.2255, allocations: 2.817 MB / 475.4 MB, free: 44.09 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001678/0.2272, allocations: 1.355 MB / 476.7 MB, free: 43.46 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002153/0.2293, allocations: 1.959 MB / 478.7 MB, free: 42.75 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001719/0.2311, allocations: 1.364 MB / 480 MB, free: 42.41 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000517/0.2316, allocations: 249.1 kB / 480.3 MB, free: 42.41 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006864/0.2384, allocations: 3.022 MB / 483.3 MB, free: 41.73 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006716/0.2391, allocations: 0.6297 MB / 483.9 MB, free: 41.35 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00109/0.2402, allocations: 0.8972 MB / 484.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01108/0.2513, allocations: 6.507 MB / 491.3 MB, free: 38.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.2513, allocations: 4.281 kB / 491.4 MB, free: 38.24 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2513, allocations: 0 / 491.4 MB, free: 38.24 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.325e-05/0.2514, allocations: 0 / 491.4 MB, free: 38.24 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.005027/0.2564, allocations: 2.916 MB / 494.3 MB, free: 36.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.2564, allocations: 10.44 kB / 494.3 MB, free: 36.62 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002582/0.2567, allocations: 257.6 kB / 494.5 MB, free: 36.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001455/0.2582, allocations: 478.1 kB / 495 MB, free: 36.31 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001737/0.2599, allocations: 1.051 MB / 496 MB, free: 35.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/0.2601, allocations: 355.6 kB / 496.4 MB, free: 35.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002837/0.2603, allocations: 191.3 kB / 496.6 MB, free: 35.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003584/0.2639, allocations: 2.526 MB / 499.1 MB, free: 34.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.264, allocations: 4.125 kB / 499.1 MB, free: 34.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001584/0.2641, allocations: 79.06 kB / 499.2 MB, free: 34.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.846e-05/0.2642, allocations: 44 kB / 499.2 MB, free: 34.33 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004376/0.2685, allocations: 3.179 MB / 0.4906 GB, free: 33.38 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.01077/0.2793, allocations: 7.13 MB / 0.4976 GB, free: 29.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005315/0.2846, allocations: 4.651 MB / 0.5021 GB, free: 28.19 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/0.2861, allocations: 1.153 MB / 0.5033 GB, free: 27.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007805/0.2939, allocations: 5.787 MB / 0.5089 GB, free: 21.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.294, allocations: 50.53 kB / 0.509 GB, free: 21.54 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000859/0.2948, allocations: 308.1 kB / 0.5093 GB, free: 21.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=158): time 6.873e-06/0.2948, allocations: 0 / 0.5093 GB, free: 21.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=187): time 0.01538/0.3102, allocations: 7.345 MB / 0.5164 GB, free: 13.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.3102, allocations: 69.41 kB / 0.5165 GB, free: 13.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007119/0.311, allocations: 0.9361 MB / 0.5174 GB, free: 12.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001526/0.3111, allocations: 57.7 kB / 0.5175 GB, free: 12.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002343/0.3113, allocations: 0.8208 MB / 0.5183 GB, free: 11.99 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/0.3116, allocations: 0.6545 MB / 0.5189 GB, free: 11.33 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003329/0.312, allocations: 414.6 kB / 0.5193 GB, free: 10.92 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.253e-05/0.312, allocations: 301.1 kB / 0.5196 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008234/0.3128, allocations: 0.7812 MB / 0.5204 GB, free: 9.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000953/0.3138, allocations: 1.379 MB / 0.5217 GB, free: 8.199 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001965/0.3157, allocations: 2.363 MB / 0.524 GB, free: 5.609 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.3157, allocations: 11.94 kB / 0.524 GB, free: 5.598 MB / 410.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.005966/0.3217, allocations: 3.375 MB / 0.5273 GB, free: 2.238 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.3217, allocations: 15.94 kB / 0.5273 GB, free: 2.223 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.3217, allocations: 20 kB / 0.5274 GB, free: 2.203 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001772/0.3235, allocations: 0.8198 MB / 0.5282 GB, free: 1.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.3246, allocations: 0.5262 MB / 0.5287 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003588/0.3281, allocations: 3.658 MB / 0.5322 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.3296, allocations: 75.92 kB / 0.5323 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002083/0.3298, allocations: 127 kB / 0.5324 GB, free: 12.82 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.0008459/0.3306, allocations: 393.1 kB / 0.5328 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003001/0.3309, allocations: 161.6 kB / 0.533 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007022/0.3379, allocations: 3.317 MB / 0.5362 GB, free: 9.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/0.3379, allocations: 22.66 kB / 0.5362 GB, free: 9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.338, allocations: 4 kB / 0.5362 GB, free: 8.996 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.9e-05/0.338, allocations: 11.95 kB / 0.5362 GB, free: 8.984 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009542/0.3475, allocations: 4.948 MB / 0.5411 GB, free: 4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.3475, allocations: 0 / 0.5411 GB, free: 4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009121/0.3484, allocations: 362.4 kB / 0.5414 GB, free: 3.648 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001854/0.3503, allocations: 0.7932 MB / 0.5422 GB, free: 2.875 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001798/0.3505, allocations: 67.95 kB / 0.5423 GB, free: 2.809 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003123/0.3536, allocations: 3.546 MB / 0.5457 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3536, allocations: 3.938 kB / 0.5457 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007818/0.3614, allocations: 4.239 MB / 0.5499 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000405/0.3618, allocations: 141.5 kB / 0.55 GB, free: 10.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.362, allocations: 39.94 kB / 0.55 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005367/0.3626, allocations: 39.98 kB / 0.5501 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003388/0.3629, allocations: 201.6 kB / 0.5503 GB, free: 10.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.363, allocations: 79.94 kB / 0.5503 GB, free: 10.31 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005762/0.3636, allocations: 0.5781 MB / 0.5509 GB, free: 9.727 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3636, allocations: 2.656 kB / 0.5509 GB, free: 9.727 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002956/0.3666, allocations: 1.188 MB / 0.5521 GB, free: 8.535 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.01155/0.3781, allocations: 6.098 MB / 0.558 GB, free: 2.496 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003891/0.382, allocations: 2.337 MB / 0.5603 GB, free: 144 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.382, allocations: 0 / 0.5603 GB, free: 144 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001907/0.3839, allocations: 1.301 MB / 0.5616 GB, free: 14.81 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.3853, allocations: 314.2 kB / 0.5619 GB, free: 14.54 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02659/0.4119, allocations: 15.78 MB / 0.5773 GB, free: 14.07 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006681/0.4125, allocations: 0.7481 MB / 0.578 GB, free: 13.31 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001476/0.414, allocations: 420.5 kB / 0.5784 GB, free: 13.02 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000954/0.415, allocations: 0.8327 MB / 0.5792 GB, free: 12.19 MB / 474.7 MB Notification: Performance of SimCode: time 2.044e-06/0.415, allocations: 0 / 0.5792 GB, free: 12.19 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2422/0.6572, allocations: 63.64 MB / 0.6414 GB, free: 148.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.312/9.969, allocations: 3.312 kB / 0.6414 GB, free: 148.8 MB / 0.4948 GB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file Chemical_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_Chemical_Obsolete_Examples_AcidBase_Phosphate.fmu > Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.987978886812925] Failed to read output from testmodel.py, exit status != 0: 10.085592946968973 10.094099382 9.840853447 Calling exit ...