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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 110.9 kB / 16.42 MB, free: 6.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 183.9 kB / 17.34 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08023/0.08023, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 63.91 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.09125, allocations: 53.61 MB / 479.5 MB, free: 5.785 MB / 350.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.03917/0.1305, allocations: 28.46 MB / 0.496 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2246/0.355, allocations: 28.7 MB / 0.5241 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00131/0.3564, allocations: 24.59 kB / 0.5241 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.3578, allocations: 0.5774 MB / 0.5246 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007307/0.3651, allocations: 2.593 MB / 0.5272 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009412/0.3746, allocations: 3.541 MB / 0.5306 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003542/0.3781, allocations: 2.714 MB / 0.5333 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002831/0.381, allocations: 1.636 MB / 0.5349 GB, free: 8.125 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002737/0.3837, allocations: 1.421 MB / 0.5363 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002568/0.3863, allocations: 1.606 MB / 0.5378 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004805/0.3868, allocations: 246.4 kB / 0.5381 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01034/0.3971, allocations: 3.147 MB / 0.5411 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007683/0.3979, allocations: 0.6114 MB / 0.5417 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.3994, allocations: 1.212 MB / 0.5429 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01212/0.4116, allocations: 5.95 MB / 0.5487 GB, free: 15.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.4116, allocations: 0 / 0.5487 GB, free: 15.65 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4116, allocations: 4 kB / 0.5487 GB, free: 15.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.869e-05/0.4116, allocations: 0 / 0.5487 GB, free: 15.65 MB / 398.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.00599/0.4176, allocations: 3.067 MB / 0.5517 GB, free: 12.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.4177, allocations: 8.031 kB / 0.5517 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002181/0.4199, allocations: 477.3 kB / 0.5522 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001727/0.4216, allocations: 1.101 MB / 0.5533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.4218, allocations: 255 kB / 0.5535 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000352/0.4222, allocations: 194.9 kB / 0.5537 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003969/0.4262, allocations: 2.504 MB / 0.5562 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.881e-05/0.4262, allocations: 6.656 kB / 0.5562 GB, free: 7.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001995/0.4264, allocations: 72 kB / 0.5562 GB, free: 7.859 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.144e-05/0.4265, allocations: 44 kB / 0.5563 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004895/0.4314, allocations: 3.188 MB / 0.5594 GB, free: 4.625 MB / 398.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.0135/0.4449, allocations: 8.347 MB / 0.5675 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00872/0.4536, allocations: 5.412 MB / 0.5728 GB, free: 6.492 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002002/0.4557, allocations: 1.278 MB / 0.5741 GB, free: 5.215 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0155/0.4712, allocations: 10.25 MB / 0.5841 GB, free: 9.895 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.4712, allocations: 58.47 kB / 0.5841 GB, free: 9.832 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001092/0.4723, allocations: 238.8 kB / 0.5844 GB, free: 9.598 MB / 430.1 MB Notification: Performance of pre-optimization done (n=158): time 9.458e-06/0.4724, allocations: 2.766 kB / 0.5844 GB, free: 9.598 MB / 430.1 MB Notification: Performance of matching and sorting (n=187): time 0.03134/0.5037, allocations: 7.59 MB / 0.5918 GB, free: 1.977 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.029e-05/0.5038, allocations: 73.41 kB / 0.5918 GB, free: 1.895 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/0.5052, allocations: 0.8974 MB / 0.5927 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003793/0.5056, allocations: 60.36 kB / 0.5928 GB, free: 0.918 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000575/0.5062, allocations: 0.8209 MB / 0.5936 GB, free: 88 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009515/0.5072, allocations: 0.6702 MB / 0.5942 GB, free: 15.41 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001003/0.5082, allocations: 415.9 kB / 0.5946 GB, free: 14.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.5083, allocations: 304.9 kB / 0.5949 GB, free: 14.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001729/0.51, allocations: 0.7877 MB / 0.5957 GB, free: 13.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/0.512, allocations: 1.373 MB / 0.597 GB, free: 12.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003764/0.5158, allocations: 2.363 MB / 0.5993 GB, free: 9.711 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.791e-05/0.5158, allocations: 4 kB / 0.5993 GB, free: 9.707 MB / 446.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01257/0.5284, allocations: 3.4 MB / 0.6027 GB, free: 6.328 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.518e-05/0.5285, allocations: 12 kB / 0.6027 GB, free: 6.316 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.024e-05/0.5285, allocations: 16 kB / 0.6027 GB, free: 6.301 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003956/0.5325, allocations: 0.8156 MB / 0.6035 GB, free: 5.504 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002146/0.5346, allocations: 0.5175 MB / 0.604 GB, free: 4.988 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005805/0.5405, allocations: 3.892 MB / 0.6078 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.5422, allocations: 71.98 kB / 0.6079 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004008/0.5427, allocations: 134.5 kB / 0.608 GB, free: 0.6367 MB / 446.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.001053/0.5437, allocations: 406.1 kB / 0.6084 GB, free: 236 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005123/0.5442, allocations: 151 kB / 0.6085 GB, free: 84 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01263/0.5569, allocations: 3.321 MB / 0.6118 GB, free: 12.81 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.744e-05/0.557, allocations: 14.7 kB / 0.6118 GB, free: 12.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.557, allocations: 0 / 0.6118 GB, free: 12.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003801/0.5574, allocations: 215.9 kB / 0.612 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004112/0.5578, allocations: 32 kB / 0.612 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.559, allocations: 47.98 kB / 0.6121 GB, free: 12.49 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005431/0.5595, allocations: 204.3 kB / 0.6123 GB, free: 12.3 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006418/0.5659, allocations: 2.402 MB / 0.6146 GB, free: 9.887 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005333/0.5713, allocations: 3.343 MB / 0.6179 GB, free: 6.531 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001468/0.5728, allocations: 0.963 MB / 0.6188 GB, free: 5.57 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008128/0.5736, allocations: 0.5742 MB / 0.6194 GB, free: 4.988 MB / 462.1 MB Notification: Performance of Backend: time 7.91e-07/0.5736, allocations: 3.938 kB / 0.6194 GB, free: 4.984 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008514/0.5822, allocations: 3.461 MB / 0.6228 GB, free: 1.543 MB / 462.1 MB Notification: Performance of SimCode: time 0.005467/0.5877, allocations: 3.464 MB / 0.6261 GB, free: 14.08 MB / 478.1 MB Notification: Performance of Templates: time 0.07094/0.6586, allocations: 50.68 MB / 0.6756 GB, free: 11.73 MB / 0.5137 GB make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile (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)