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.001733/0.001733, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.002007/0.002007, allocations: 218.9 kB / 22.26 MB, free: 5.125 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.488/1.488, allocations: 230.6 MB / 256 MB, free: 7.988 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.1459/0.1459, allocations: 23.89 MB / 336.3 MB, free: 11.17 MB / 270.1 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: 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.001939/0.001939, allocations: 67.89 kB / 471.2 MB, free: 7.656 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3363, allocations: 59.87 MB / 0.5187 GB, free: 9.609 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.0415/0.3778, allocations: 29.61 MB / 0.5476 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03803/0.4158, allocations: 28.91 MB / 0.5758 GB, free: 15.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001833/0.4177, allocations: 31.75 kB / 0.5758 GB, free: 15.54 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.4193, allocations: 0.5699 MB / 0.5764 GB, free: 14.96 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008075/0.4274, allocations: 2.627 MB / 0.579 GB, free: 12.32 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01091/0.4383, allocations: 3.573 MB / 0.5824 GB, free: 8.727 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004437/0.4427, allocations: 2.724 MB / 0.5851 GB, free: 5.996 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001891/0.4446, allocations: 1.356 MB / 0.5864 GB, free: 4.602 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001821/0.4465, allocations: 1.458 MB / 0.5879 GB, free: 3.141 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002442/0.4489, allocations: 1.64 MB / 0.5895 GB, free: 1.496 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003835/0.4493, allocations: 252 kB / 0.5897 GB, free: 1.25 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009347/0.4586, allocations: 3.198 MB / 0.5928 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008075/0.4594, allocations: 0.6155 MB / 0.5934 GB, free: 13.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001556/0.461, allocations: 1.217 MB / 0.5946 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01435/0.4753, allocations: 6.129 MB / 0.6006 GB, free: 6.055 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.4754, allocations: 0 / 0.6006 GB, free: 6.055 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4754, allocations: 0 / 0.6006 GB, free: 6.055 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.035e-05/0.4754, allocations: 0 / 0.6006 GB, free: 6.055 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.006278/0.4817, allocations: 2.938 MB / 0.6035 GB, free: 3.07 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.4817, allocations: 8.031 kB / 0.6035 GB, free: 3.062 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003358/0.4821, allocations: 266 kB / 0.6037 GB, free: 2.793 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002137/0.4842, allocations: 474.8 kB / 0.6042 GB, free: 2.328 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002134/0.4863, allocations: 1.046 MB / 0.6052 GB, free: 1.254 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002844/0.4866, allocations: 361.8 kB / 0.6055 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003585/0.487, allocations: 184.3 kB / 0.6057 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00415/0.4911, allocations: 2.535 MB / 0.6082 GB, free: 14.1 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.527e-05/0.4912, allocations: 4 kB / 0.6082 GB, free: 14.09 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001922/0.4914, allocations: 72 kB / 0.6083 GB, free: 14.02 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.602e-05/0.4914, allocations: 44 kB / 0.6083 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005119/0.4965, allocations: 3.211 MB / 0.6114 GB, free: 10.77 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.01408/0.5106, allocations: 8.392 MB / 0.6196 GB, free: 2.078 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008719/0.5193, allocations: 4.787 MB / 0.6243 GB, free: 13.27 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001972/0.5213, allocations: 1.16 MB / 0.6255 GB, free: 12.11 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0126/0.5339, allocations: 6.073 MB / 0.6314 GB, free: 6.016 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.594e-05/0.5339, allocations: 51.88 kB / 0.6314 GB, free: 5.953 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00136/0.5353, allocations: 314.6 kB / 0.6317 GB, free: 5.645 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.669e-06/0.5353, allocations: 0 / 0.6317 GB, free: 5.645 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.0287/0.564, allocations: 7.362 MB / 0.6389 GB, free: 14.23 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.486e-05/0.5641, allocations: 73.41 kB / 0.639 GB, free: 14.15 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.5653, allocations: 0.8974 MB / 0.6399 GB, free: 13.24 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002895/0.5656, allocations: 57.7 kB / 0.6399 GB, free: 13.18 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006037/0.5662, allocations: 0.8248 MB / 0.6407 GB, free: 12.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006517/0.5668, allocations: 0.6623 MB / 0.6414 GB, free: 11.67 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000589/0.5674, allocations: 419.9 kB / 0.6418 GB, free: 11.25 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5675, allocations: 309.1 kB / 0.6421 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.5689, allocations: 0.7851 MB / 0.6428 GB, free: 10.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001931/0.5708, allocations: 1.379 MB / 0.6442 GB, free: 8.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003567/0.5744, allocations: 2.36 MB / 0.6465 GB, free: 5.906 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.5744, allocations: 4 kB / 0.6465 GB, free: 5.902 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01201/0.5864, allocations: 3.383 MB / 0.6498 GB, free: 2.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.745e-05/0.5865, allocations: 12.94 kB / 0.6498 GB, free: 2.488 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.528e-05/0.5865, allocations: 16 kB / 0.6498 GB, free: 2.473 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003863/0.5904, allocations: 0.814 MB / 0.6506 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002191/0.5926, allocations: 0.5188 MB / 0.6511 GB, free: 1.129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005906/0.5985, allocations: 3.703 MB / 0.6547 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.6002, allocations: 71.98 kB / 0.6548 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002283/0.6004, allocations: 127.9 kB / 0.6549 GB, free: 13.01 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.0008156/0.6012, allocations: 393.7 kB / 0.6553 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003425/0.6016, allocations: 159 kB / 0.6555 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01187/0.6134, allocations: 3.323 MB / 0.6587 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-05/0.6135, allocations: 20 kB / 0.6587 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.6135, allocations: 7.938 kB / 0.6587 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.474e-05/0.6135, allocations: 7.969 kB / 0.6587 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01476/0.6283, allocations: 5.207 MB / 0.6638 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/0.6283, allocations: 0 / 0.6638 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001594/0.6299, allocations: 367.5 kB / 0.6642 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003663/0.6336, allocations: 0.7906 MB / 0.6649 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002577/0.6338, allocations: 71.95 kB / 0.665 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005481/0.6393, allocations: 3.581 MB / 0.6685 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.6393, allocations: 3.938 kB / 0.6685 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/0.6526, allocations: 4.242 MB / 0.6727 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003839/0.653, allocations: 135 kB / 0.6728 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000217/0.6532, allocations: 36 kB / 0.6728 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009033/0.6541, allocations: 39.98 kB / 0.6729 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000453/0.6546, allocations: 209.6 kB / 0.6731 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001785/0.6547, allocations: 79.95 kB / 0.6731 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000775/0.6555, allocations: 0.5742 MB / 0.6737 GB, free: 9.43 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6555, allocations: 0 / 0.6737 GB, free: 9.43 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003301/0.6588, allocations: 1.196 MB / 0.6749 GB, free: 8.23 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.01602/0.6748, allocations: 6.045 MB / 0.6808 GB, free: 2.148 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004873/0.6797, allocations: 2.342 MB / 0.6831 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.6797, allocations: 1.25 kB / 0.6831 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002481/0.6822, allocations: 1.31 MB / 0.6843 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/0.6837, allocations: 311.4 kB / 0.6846 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03819/0.7219, allocations: 15.85 MB / 0.7001 GB, free: 13.51 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009828/0.7228, allocations: 1.337 MB / 0.7014 GB, free: 12.14 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00154/0.7244, allocations: 420 kB / 0.7018 GB, free: 11.72 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/0.7256, allocations: 0.8349 MB / 0.7026 GB, free: 10.89 MB / 0.545 GB Notification: Performance of SimCode: time 9.12e-07/0.7256, allocations: 0 / 0.7026 GB, free: 10.89 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.364/1.09, allocations: 62.67 MB / 0.7638 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.06/18.15, allocations: 10.91 kB / 0.7638 GB, free: 164.9 MB / 0.5606 GB " [Timeout remaining time 642] (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: 21.015170360915363] Failed to read output from testmodel.py, exit status != 0: 18.295623873127624 18.305492457 17.827976678 Calling exit ...