Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Phosphate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 113.9 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002157/0.002157, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 225.6 MB / 249.4 MB, free: 3.004 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1385/0.1385, allocations: 15.54 MB / 320 MB, free: 13.21 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002801/0.002801, allocations: 65.98 kB / 448.2 MB, free: 45.96 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1194, allocations: 56.56 MB / 0.493 GB, free: 18.96 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.AcidBase.Phosphate): time 0.03859/0.158, allocations: 29.27 MB / 0.5216 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03883/0.1968, allocations: 28.85 MB / 0.5497 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002481/0.1993, allocations: 23.88 kB / 0.5497 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002207/0.2015, allocations: 0.5778 MB / 0.5503 GB, free: 10.33 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008946/0.2104, allocations: 2.6 MB / 0.5528 GB, free: 7.711 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01171/0.2222, allocations: 3.53 MB / 0.5563 GB, free: 4.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005134/0.2273, allocations: 2.724 MB / 0.559 GB, free: 1.426 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002561/0.2298, allocations: 1.367 MB / 0.5603 GB, free: 20 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002865/0.2327, allocations: 1.419 MB / 0.5617 GB, free: 14.59 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003422/0.2361, allocations: 1.651 MB / 0.5633 GB, free: 12.94 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009263/0.2371, allocations: 255.9 kB / 0.5635 GB, free: 12.69 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01271/0.2498, allocations: 3.194 MB / 0.5667 GB, free: 9.492 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001516/0.2513, allocations: 0.6193 MB / 0.5673 GB, free: 8.871 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002117/0.2534, allocations: 1.21 MB / 0.5684 GB, free: 7.656 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01585/0.2693, allocations: 5.965 MB / 0.5743 GB, free: 1.668 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.2693, allocations: 0 / 0.5743 GB, free: 1.668 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2693, allocations: 0 / 0.5743 GB, free: 1.668 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.054e-05/0.2693, allocations: 0 / 0.5743 GB, free: 1.668 MB / 430.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.007344/0.2767, allocations: 3.014 MB / 0.5772 GB, free: 14.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.2767, allocations: 8.031 kB / 0.5772 GB, free: 14.58 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002235/0.279, allocations: 478.6 kB / 0.5777 GB, free: 14.11 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001952/0.2809, allocations: 1.1 MB / 0.5787 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002704/0.2812, allocations: 255 kB / 0.579 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003733/0.2816, allocations: 188.3 kB / 0.5792 GB, free: 12.52 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004664/0.2862, allocations: 2.535 MB / 0.5816 GB, free: 9.945 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.726e-05/0.2863, allocations: 4 kB / 0.5816 GB, free: 9.941 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002137/0.2865, allocations: 72 kB / 0.5817 GB, free: 9.871 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-05/0.2865, allocations: 47.94 kB / 0.5818 GB, free: 9.824 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005458/0.292, allocations: 3.211 MB / 0.5849 GB, free: 6.609 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.01531/0.3073, allocations: 8.458 MB / 0.5932 GB, free: 13.85 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00927/0.3166, allocations: 5.287 MB / 0.5983 GB, free: 8.43 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002426/0.319, allocations: 1.16 MB / 0.5995 GB, free: 7.266 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2911/0.6101, allocations: 10.31 MB / 0.6095 GB, free: 96.85 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.6101, allocations: 51.19 kB / 0.6096 GB, free: 96.81 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001574/0.6117, allocations: 311.2 kB / 0.6099 GB, free: 96.81 MB / 462.1 MB Notification: Performance of pre-optimization done (n=158): time 1.522e-05/0.6117, allocations: 1.031 kB / 0.6099 GB, free: 96.81 MB / 462.1 MB Notification: Performance of matching and sorting (n=187): time 0.03011/0.6418, allocations: 7.581 MB / 0.6173 GB, free: 94.54 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.6419, allocations: 75.44 kB / 0.6173 GB, free: 94.47 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001275/0.6432, allocations: 0.8956 MB / 0.6182 GB, free: 94.11 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003112/0.6435, allocations: 56.89 kB / 0.6183 GB, free: 94.05 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003981/0.6439, allocations: 0.8303 MB / 0.6191 GB, free: 93.49 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004664/0.6443, allocations: 0.66 MB / 0.6197 GB, free: 93.05 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000557/0.6449, allocations: 411.8 kB / 0.6201 GB, free: 92.87 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.092e-05/0.6449, allocations: 306.4 kB / 0.6204 GB, free: 92.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.6462, allocations: 0.7905 MB / 0.6212 GB, free: 92.27 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/0.6477, allocations: 1.378 MB / 0.6225 GB, free: 91.26 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002771/0.6505, allocations: 2.362 MB / 0.6248 GB, free: 89.72 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/0.6505, allocations: 4.25 kB / 0.6248 GB, free: 89.72 MB / 462.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01091/0.6614, allocations: 3.389 MB / 0.6282 GB, free: 88.29 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.6615, allocations: 15.78 kB / 0.6282 GB, free: 88.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.072e-05/0.6615, allocations: 15.41 kB / 0.6282 GB, free: 88.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003458/0.6649, allocations: 0.8185 MB / 0.629 GB, free: 87.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001942/0.6669, allocations: 0.5182 MB / 0.6295 GB, free: 87.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004968/0.6718, allocations: 3.893 MB / 0.6333 GB, free: 84.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001714/0.6736, allocations: 68.55 kB / 0.6334 GB, free: 84.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002039/0.6738, allocations: 127.6 kB / 0.6335 GB, free: 84.07 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.0007939/0.6746, allocations: 404.1 kB / 0.6339 GB, free: 83.78 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003461/0.6749, allocations: 165 kB / 0.634 GB, free: 83.69 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01086/0.6858, allocations: 3.307 MB / 0.6373 GB, free: 81.39 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.097e-05/0.6858, allocations: 23.3 kB / 0.6373 GB, free: 81.37 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.6858, allocations: 10.62 kB / 0.6373 GB, free: 81.36 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-05/0.6858, allocations: 11.95 kB / 0.6373 GB, free: 81.35 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01317/0.699, allocations: 5.219 MB / 0.6424 GB, free: 76.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.831e-05/0.699, allocations: 3.984 kB / 0.6424 GB, free: 76.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/0.7006, allocations: 360.4 kB / 0.6427 GB, free: 75.79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003488/0.7041, allocations: 0.7946 MB / 0.6435 GB, free: 75.02 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000378/0.7045, allocations: 67.95 kB / 0.6436 GB, free: 74.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004084/0.7086, allocations: 3.798 MB / 0.6473 GB, free: 70.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.7086, allocations: 0 / 0.6473 GB, free: 70.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01206/0.7207, allocations: 4.24 MB / 0.6514 GB, free: 66.66 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004884/0.7211, allocations: 218.2 kB / 0.6516 GB, free: 66.43 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002601/0.7214, allocations: 32 kB / 0.6517 GB, free: 66.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008896/0.7223, allocations: 43.98 kB / 0.6517 GB, free: 66.35 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004709/0.7228, allocations: 196.3 kB / 0.6519 GB, free: 66.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/0.7229, allocations: 79.95 kB / 0.652 GB, free: 66.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005896/0.7235, allocations: 0.5768 MB / 0.6525 GB, free: 65.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7235, allocations: 0 / 0.6525 GB, free: 65.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002807/0.7263, allocations: 1.197 MB / 0.6537 GB, free: 64.4 MB / 462.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.001915/0.7282, allocations: 1.346 MB / 0.655 GB, free: 63.27 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003715/0.7319, allocations: 2.404 MB / 0.6574 GB, free: 60.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.7319, allocations: 2.656 kB / 0.6574 GB, free: 60.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001988/0.7339, allocations: 1.389 MB / 0.6587 GB, free: 59.39 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.7354, allocations: 321.8 kB / 0.659 GB, free: 59.11 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005196/0.7406, allocations: 3.402 MB / 0.6624 GB, free: 55.73 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005309/0.7412, allocations: 1.325 MB / 0.6636 GB, free: 54.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001279/0.7424, allocations: 420.5 kB / 0.6641 GB, free: 54.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005362/0.743, allocations: 272.7 kB / 0.6643 GB, free: 53.84 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.743, allocations: 0 / 0.6643 GB, free: 53.84 MB / 462.1 MB Notification: Performance of Templates: time 0.05552/0.7985, allocations: 47.13 MB / 0.7103 GB, free: 7.52 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile [Timeout 660] (rm -f Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Phosphate.sim & ./Chemical_Chemical.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.126324915327132]