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.001683/0.001683, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001534/0.001534, allocations: 221.1 kB / 23.03 MB, free: 4.945 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 7.773 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.1347/0.1347, allocations: 23.87 MB / 337.1 MB, free: 11 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_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.001973/0.001973, allocations: 64.14 kB / 471.9 MB, free: 7.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2968, allocations: 59.86 MB / 0.5193 GB, free: 9.488 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.07225/0.369, allocations: 28.32 MB / 0.547 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03593/0.4049, allocations: 25.27 MB / 0.5716 GB, free: 4.367 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001505/0.4064, allocations: 31.75 kB / 0.5717 GB, free: 4.336 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.4079, allocations: 0.5233 MB / 0.5722 GB, free: 3.809 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007327/0.4153, allocations: 2.561 MB / 0.5747 GB, free: 1.23 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009811/0.4251, allocations: 3.569 MB / 0.5782 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004086/0.4292, allocations: 2.724 MB / 0.5808 GB, free: 10.91 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001896/0.4311, allocations: 1.368 MB / 0.5822 GB, free: 9.504 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001817/0.4329, allocations: 1.45 MB / 0.5836 GB, free: 8.051 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002481/0.4354, allocations: 1.651 MB / 0.5852 GB, free: 6.395 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004604/0.4358, allocations: 252 kB / 0.5854 GB, free: 6.148 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007707/0.4435, allocations: 3.069 MB / 0.5884 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007915/0.4443, allocations: 0.6193 MB / 0.589 GB, free: 2.453 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001397/0.4457, allocations: 1.039 MB / 0.59 GB, free: 1.41 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01257/0.4583, allocations: 6.117 MB / 0.596 GB, free: 11.27 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4583, allocations: 0 / 0.596 GB, free: 11.27 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4583, allocations: 0 / 0.596 GB, free: 11.27 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.795e-05/0.4584, allocations: 0 / 0.596 GB, free: 11.27 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.006664/0.465, allocations: 2.931 MB / 0.5989 GB, free: 8.293 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.4651, allocations: 8.031 kB / 0.5989 GB, free: 8.285 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.887e-05/0.4651, allocations: 47.84 kB / 0.5989 GB, free: 8.238 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003753/0.4655, allocations: 258 kB / 0.5992 GB, free: 7.977 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002242/0.4678, allocations: 482.6 kB / 0.5996 GB, free: 7.504 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001968/0.4697, allocations: 1.046 MB / 0.6007 GB, free: 6.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002897/0.47, allocations: 353.8 kB / 0.601 GB, free: 6.035 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003894/0.4704, allocations: 200.1 kB / 0.6012 GB, free: 5.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004422/0.4748, allocations: 2.531 MB / 0.6037 GB, free: 3.273 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.4749, allocations: 0 / 0.6037 GB, free: 3.273 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002236/0.4751, allocations: 75.94 kB / 0.6037 GB, free: 3.199 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.753e-05/0.4751, allocations: 44 kB / 0.6038 GB, free: 3.156 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005398/0.4805, allocations: 3.211 MB / 0.6069 GB, free: 15.94 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.01719/0.4977, allocations: 7.114 MB / 0.6139 GB, free: 8.707 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01011/0.5078, allocations: 4.665 MB / 0.6184 GB, free: 4.027 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002111/0.5099, allocations: 1.157 MB / 0.6195 GB, free: 2.871 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01384/0.5238, allocations: 5.775 MB / 0.6252 GB, free: 13.07 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.802e-05/0.5238, allocations: 47.88 kB / 0.6252 GB, free: 13.01 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001506/0.5253, allocations: 314.7 kB / 0.6255 GB, free: 12.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 6.432e-06/0.5253, allocations: 3.938 kB / 0.6255 GB, free: 12.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03086/0.5562, allocations: 7.358 MB / 0.6327 GB, free: 5.293 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.5562, allocations: 69.41 kB / 0.6328 GB, free: 5.215 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/0.5577, allocations: 0.9091 MB / 0.6337 GB, free: 4.289 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003123/0.558, allocations: 53.7 kB / 0.6337 GB, free: 4.23 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000671/0.5586, allocations: 0.8209 MB / 0.6345 GB, free: 3.398 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000733/0.5594, allocations: 0.6661 MB / 0.6352 GB, free: 2.727 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006953/0.5601, allocations: 419.9 kB / 0.6356 GB, free: 2.309 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.5602, allocations: 305.1 kB / 0.6359 GB, free: 2.008 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.5617, allocations: 0.789 MB / 0.6366 GB, free: 1.215 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002069/0.5638, allocations: 1.371 MB / 0.638 GB, free: 15.58 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003833/0.5676, allocations: 2.36 MB / 0.6403 GB, free: 12.97 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.427e-05/0.5676, allocations: 8 kB / 0.6403 GB, free: 12.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01275/0.5804, allocations: 3.38 MB / 0.6436 GB, free: 9.562 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/0.5804, allocations: 12 kB / 0.6436 GB, free: 9.551 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.619e-05/0.5804, allocations: 20 kB / 0.6436 GB, free: 9.531 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004004/0.5844, allocations: 0.8187 MB / 0.6444 GB, free: 8.703 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002233/0.5867, allocations: 0.5149 MB / 0.6449 GB, free: 8.188 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006134/0.5928, allocations: 3.669 MB / 0.6485 GB, free: 4.289 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.5946, allocations: 63.98 kB / 0.6486 GB, free: 4.227 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002797/0.5949, allocations: 127.9 kB / 0.6487 GB, free: 4.102 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.0008415/0.5957, allocations: 401.6 kB / 0.6491 GB, free: 3.699 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003726/0.5961, allocations: 163 kB / 0.6492 GB, free: 3.539 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01639/0.6125, allocations: 3.323 MB / 0.6525 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.763e-05/0.6125, allocations: 19.98 kB / 0.6525 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.374e-05/0.6125, allocations: 7.938 kB / 0.6525 GB, free: 172 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-05/0.6126, allocations: 7.969 kB / 0.6525 GB, free: 164 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01589/0.6285, allocations: 4.93 MB / 0.6573 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.6285, allocations: 0 / 0.6573 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001727/0.6302, allocations: 371.5 kB / 0.6577 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003913/0.6341, allocations: 0.7945 MB / 0.6585 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002479/0.6344, allocations: 63.94 kB / 0.6585 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00547/0.6398, allocations: 3.553 MB / 0.662 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.6398, allocations: 0 / 0.662 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01418/0.654, allocations: 4.238 MB / 0.6661 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004135/0.6544, allocations: 135 kB / 0.6663 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002715/0.6547, allocations: 40 kB / 0.6663 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001/0.6557, allocations: 39.98 kB / 0.6663 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000562/0.6563, allocations: 205.8 kB / 0.6665 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002144/0.6565, allocations: 79.94 kB / 0.6666 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008936/0.6574, allocations: 0.582 MB / 0.6672 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6574, allocations: 3.938 kB / 0.6672 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003554/0.6609, allocations: 1.192 MB / 0.6683 GB, free: 15.62 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.01767/0.6786, allocations: 6.045 MB / 0.6742 GB, free: 9.535 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00539/0.684, allocations: 2.339 MB / 0.6765 GB, free: 7.168 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.684, allocations: 4.312 kB / 0.6765 GB, free: 7.164 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002687/0.6867, allocations: 1.313 MB / 0.6778 GB, free: 5.824 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001606/0.6883, allocations: 314 kB / 0.6781 GB, free: 5.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03996/0.7282, allocations: 15.85 MB / 0.6936 GB, free: 4.895 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008342/0.7291, allocations: 0.7558 MB / 0.6943 GB, free: 4.102 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001492/0.7306, allocations: 408.2 kB / 0.6947 GB, free: 3.699 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001242/0.7318, allocations: 0.8349 MB / 0.6955 GB, free: 2.867 MB / 0.5294 GB Notification: Performance of SimCode: time 1.012e-06/0.7318, allocations: 4 kB / 0.6955 GB, free: 2.863 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3606/1.092, allocations: 63.83 MB / 0.7579 GB, free: 170.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.37/19.46, allocations: 3.969 kB / 0.7579 GB, free: 170.8 MB / 0.5606 GB " [Timeout remaining time 640] (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: 22.296478954027407] Failed to read output from testmodel.py, exit status != 0: 19.675851037958637 19.695578082 19.233422062 Calling exit ...