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.001363/0.001363, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001575/0.001575, allocations: 215 kB / 20.13 MB, free: 2.949 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.517/1.517, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1443/0.1443, allocations: 23.88 MB / 333.4 MB, free: 1.18 MB / 254.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.002005/0.002005, allocations: 67.55 kB / 466.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1094, allocations: 59.85 MB / 0.5142 GB, free: 12.9 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.04428/0.1537, allocations: 29.37 MB / 0.5429 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03885/0.1925, allocations: 28.85 MB / 0.5711 GB, free: 2.605 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002126/0.1947, allocations: 35.69 kB / 0.5711 GB, free: 2.57 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002564/0.1972, allocations: 0.5817 MB / 0.5717 GB, free: 1.984 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01025/0.2075, allocations: 2.596 MB / 0.5742 GB, free: 15.37 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01216/0.2196, allocations: 3.53 MB / 0.5777 GB, free: 11.82 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005533/0.2252, allocations: 2.728 MB / 0.5803 GB, free: 9.078 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002556/0.2277, allocations: 1.41 MB / 0.5817 GB, free: 7.633 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002803/0.2305, allocations: 1.45 MB / 0.5831 GB, free: 6.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0036/0.2341, allocations: 1.643 MB / 0.5847 GB, free: 4.531 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001061/0.2352, allocations: 252 kB / 0.585 GB, free: 4.285 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0105/0.2457, allocations: 3.194 MB / 0.5881 GB, free: 1.086 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001224/0.2469, allocations: 0.6155 MB / 0.5887 GB, free: 480 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2393/0.4862, allocations: 1.209 MB / 0.5899 GB, free: 25.45 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01812/0.5043, allocations: 6.127 MB / 0.5959 GB, free: 25.14 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.5043, allocations: 0.8438 kB / 0.5959 GB, free: 25.14 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.5043, allocations: 0 / 0.5959 GB, free: 25.14 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001517/0.5045, allocations: 0 / 0.5959 GB, free: 25.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.01196/0.5164, allocations: 3.014 MB / 0.5988 GB, free: 23.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.405e-05/0.5165, allocations: 9.375 kB / 0.5988 GB, free: 23.77 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001117/0.5166, allocations: 48.66 kB / 0.5989 GB, free: 23.77 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001103/0.5177, allocations: 260.4 kB / 0.5991 GB, free: 23.72 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003333/0.5211, allocations: 478.5 kB / 0.5996 GB, free: 23.6 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003506/0.5246, allocations: 1.122 MB / 0.6007 GB, free: 23.22 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003368/0.5249, allocations: 253.4 kB / 0.6009 GB, free: 23.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001068/0.526, allocations: 190.6 kB / 0.6011 GB, free: 23.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005639/0.5316, allocations: 2.532 MB / 0.6036 GB, free: 22.93 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.51e-05/0.5317, allocations: 1.156 kB / 0.6036 GB, free: 22.93 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000307/0.532, allocations: 74.73 kB / 0.6036 GB, free: 22.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.382e-05/0.532, allocations: 45 kB / 0.6037 GB, free: 22.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006094/0.5381, allocations: 3.209 MB / 0.6068 GB, free: 22.92 MB / 446.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.01564/0.5537, allocations: 8.472 MB / 0.6151 GB, free: 19.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008892/0.5626, allocations: 5.291 MB / 0.6202 GB, free: 17.53 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002254/0.5649, allocations: 1.161 MB / 0.6214 GB, free: 17.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0126/0.5775, allocations: 10.33 MB / 0.6315 GB, free: 8.633 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.5775, allocations: 47.81 kB / 0.6315 GB, free: 8.582 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001483/0.579, allocations: 307.8 kB / 0.6318 GB, free: 8.418 MB / 446.1 MB Notification: Performance of pre-optimization done (n=158): time 5.26e-06/0.579, allocations: 0 / 0.6318 GB, free: 8.418 MB / 446.1 MB Notification: Performance of matching and sorting (n=187): time 0.02934/0.6083, allocations: 7.583 MB / 0.6392 GB, free: 3.215 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.6084, allocations: 72.12 kB / 0.6393 GB, free: 3.133 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009919/0.6094, allocations: 0.9013 MB / 0.6402 GB, free: 2.215 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003625/0.6097, allocations: 61.27 kB / 0.6402 GB, free: 2.152 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003278/0.6101, allocations: 0.8254 MB / 0.641 GB, free: 1.324 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005617/0.6106, allocations: 0.658 MB / 0.6417 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005721/0.6112, allocations: 418.5 kB / 0.6421 GB, free: 264 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.306e-05/0.6113, allocations: 305.1 kB / 0.6424 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.6129, allocations: 0.7929 MB / 0.6431 GB, free: 15.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002134/0.615, allocations: 1.37 MB / 0.6445 GB, free: 13.55 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004361/0.6194, allocations: 2.362 MB / 0.6468 GB, free: 11.05 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.608e-05/0.6194, allocations: 6.625 kB / 0.6468 GB, free: 11.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01352/0.6329, allocations: 3.382 MB / 0.6501 GB, free: 7.801 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.429e-05/0.6329, allocations: 22.61 kB / 0.6501 GB, free: 7.781 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.789e-05/0.633, allocations: 16 kB / 0.6501 GB, free: 7.766 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004025/0.637, allocations: 0.8164 MB / 0.6509 GB, free: 6.977 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002354/0.6393, allocations: 0.5174 MB / 0.6514 GB, free: 6.492 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00635/0.6457, allocations: 3.896 MB / 0.6552 GB, free: 2.375 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002078/0.6478, allocations: 68.86 kB / 0.6553 GB, free: 2.309 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003692/0.6481, allocations: 123.9 kB / 0.6554 GB, free: 2.188 MB / 462.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.0009744/0.6491, allocations: 403.3 kB / 0.6558 GB, free: 1.82 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004619/0.6496, allocations: 155 kB / 0.6559 GB, free: 1.668 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01356/0.6631, allocations: 3.327 MB / 0.6592 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.39e-05/0.6632, allocations: 20 kB / 0.6592 GB, free: 14.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.6632, allocations: 3.938 kB / 0.6592 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.66e-05/0.6632, allocations: 11.95 kB / 0.6592 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01673/0.6799, allocations: 5.223 MB / 0.6643 GB, free: 9.188 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.576e-05/0.68, allocations: 2.656 kB / 0.6643 GB, free: 9.188 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001813/0.6818, allocations: 360.5 kB / 0.6647 GB, free: 8.852 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003853/0.6856, allocations: 0.8063 MB / 0.6655 GB, free: 8.078 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003221/0.6859, allocations: 59.95 kB / 0.6655 GB, free: 8.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005538/0.6915, allocations: 3.796 MB / 0.6692 GB, free: 3.977 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.6915, allocations: 0 / 0.6692 GB, free: 3.977 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01495/0.7064, allocations: 4.253 MB / 0.6734 GB, free: 15.74 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004923/0.7069, allocations: 208.1 kB / 0.6736 GB, free: 15.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004161/0.7073, allocations: 38.66 kB / 0.6736 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.7084, allocations: 39.98 kB / 0.6737 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005618/0.709, allocations: 197.7 kB / 0.6738 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001951/0.7092, allocations: 75.95 kB / 0.6739 GB, free: 15.18 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008498/0.71, allocations: 0.5742 MB / 0.6745 GB, free: 14.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.71, allocations: 2.656 kB / 0.6745 GB, free: 14.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004132/0.7142, allocations: 1.196 MB / 0.6756 GB, free: 13.4 MB / 494.1 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.01923/0.7334, allocations: 6.04 MB / 0.6815 GB, free: 7.609 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006317/0.7397, allocations: 2.419 MB / 0.6839 GB, free: 5.219 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.7397, allocations: 0 / 0.6839 GB, free: 5.219 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003431/0.7432, allocations: 1.39 MB / 0.6853 GB, free: 3.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/0.7456, allocations: 309.8 kB / 0.6856 GB, free: 3.555 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04733/0.793, allocations: 15.85 MB / 0.701 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001223/0.7942, allocations: 1.329 MB / 0.7023 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001795/0.796, allocations: 418.1 kB / 0.7027 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/0.7974, allocations: 0.836 MB / 0.7036 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of SimCode: time 1.082e-06/0.7974, allocations: 2.625 kB / 0.7036 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1211/0.9185, allocations: 60.96 MB / 0.7631 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.03/18.95, allocations: 7.516 kB / 0.7631 GB, free: 4.391 MB / 0.5606 GB " [Timeout remaining time 641] (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.947067703003995] Failed to read output from testmodel.py, exit status != 0: 19.135888747987337 19.161259084 18.651721091 Calling exit ...