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.00132/0.00132, allocations: 112.7 kB / 16.42 MB, free: 6.512 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.001396/0.001396, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.272/1.272, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07564/0.07564, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 67.89 kB / 425.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08639/0.0876, allocations: 53.61 MB / 479.5 MB, free: 5.906 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.03643/0.1241, allocations: 28.32 MB / 0.4959 GB, free: 9.648 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2197/0.3438, allocations: 28.69 MB / 0.5239 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009422/0.3447, allocations: 24.31 kB / 0.5239 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.346, allocations: 0.57 MB / 0.5245 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005817/0.3518, allocations: 2.579 MB / 0.527 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00801/0.3599, allocations: 3.507 MB / 0.5304 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002768/0.3626, allocations: 2.715 MB / 0.5331 GB, free: 8.922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001521/0.3642, allocations: 1.635 MB / 0.5347 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.3655, allocations: 1.416 MB / 0.5361 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001749/0.3673, allocations: 1.603 MB / 0.5376 GB, free: 6.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003224/0.3676, allocations: 249.4 kB / 0.5379 GB, free: 6.805 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008627/0.3763, allocations: 3.16 MB / 0.541 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000414/0.3767, allocations: 0.6067 MB / 0.5415 GB, free: 5.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008972/0.3776, allocations: 1.211 MB / 0.5427 GB, free: 4.371 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008329/0.3859, allocations: 5.93 MB / 0.5485 GB, free: 15.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3859, allocations: 0 / 0.5485 GB, free: 15.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.386, allocations: 0 / 0.5485 GB, free: 15.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.387e-05/0.386, allocations: 4 kB / 0.5485 GB, free: 15.94 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.005473/0.3915, allocations: 2.995 MB / 0.5515 GB, free: 12.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3915, allocations: 8.031 kB / 0.5515 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001945/0.3935, allocations: 468.2 kB / 0.5519 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/0.395, allocations: 1.093 MB / 0.553 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.3952, allocations: 249.7 kB / 0.5532 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000309/0.3955, allocations: 192.3 kB / 0.5534 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003866/0.3994, allocations: 2.508 MB / 0.5558 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.975e-05/0.3994, allocations: 0 / 0.5558 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002206/0.3996, allocations: 76 kB / 0.5559 GB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.201e-05/0.3997, allocations: 44 kB / 0.556 GB, free: 8.207 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004664/0.4043, allocations: 3.189 MB / 0.5591 GB, free: 5.016 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.01273/0.4171, allocations: 8.337 MB / 0.5672 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008865/0.426, allocations: 5.404 MB / 0.5725 GB, free: 6.898 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001798/0.4278, allocations: 1.278 MB / 0.5737 GB, free: 5.621 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01351/0.4413, allocations: 10.23 MB / 0.5837 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.4414, allocations: 58.47 kB / 0.5838 GB, free: 10.25 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001005/0.4424, allocations: 242.2 kB / 0.584 GB, free: 10.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=158): time 5.45e-06/0.4424, allocations: 0 / 0.584 GB, free: 10.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=187): time 0.02881/0.4712, allocations: 7.561 MB / 0.5914 GB, free: 2.422 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.4713, allocations: 77.34 kB / 0.5915 GB, free: 2.336 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.4724, allocations: 0.9011 MB / 0.5924 GB, free: 1.418 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000131/0.4725, allocations: 57.7 kB / 0.5924 GB, free: 1.355 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004909/0.473, allocations: 0.7988 MB / 0.5932 GB, free: 0.543 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004959/0.4735, allocations: 0.638 MB / 0.5938 GB, free: 15.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005801/0.4741, allocations: 411.8 kB / 0.5942 GB, free: 15.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.006e-05/0.4742, allocations: 305.1 kB / 0.5945 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001367/0.4756, allocations: 0.7851 MB / 0.5953 GB, free: 14.39 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001764/0.4773, allocations: 1.375 MB / 0.5966 GB, free: 12.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003403/0.4807, allocations: 2.363 MB / 0.5989 GB, free: 10.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.228e-05/0.4808, allocations: 4 kB / 0.5989 GB, free: 10.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01174/0.4925, allocations: 3.384 MB / 0.6022 GB, free: 6.828 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.4926, allocations: 16 kB / 0.6022 GB, free: 6.812 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.4926, allocations: 16 kB / 0.6023 GB, free: 6.797 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003659/0.4962, allocations: 0.8193 MB / 0.6031 GB, free: 6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001812/0.4981, allocations: 0.5213 MB / 0.6036 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005291/0.5034, allocations: 3.892 MB / 0.6074 GB, free: 1.328 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/0.5047, allocations: 71.98 kB / 0.6074 GB, free: 1.258 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/0.5049, allocations: 122.6 kB / 0.6075 GB, free: 1.141 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.0007213/0.5057, allocations: 405 kB / 0.6079 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003236/0.506, allocations: 142.2 kB / 0.6081 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01189/0.5179, allocations: 3.322 MB / 0.6113 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/0.5179, allocations: 14.66 kB / 0.6113 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.5179, allocations: 0 / 0.6113 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.5182, allocations: 203.2 kB / 0.6115 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002369/0.5184, allocations: 35.94 kB / 0.6116 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009399/0.5194, allocations: 46.67 kB / 0.6116 GB, free: 13.01 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004381/0.5198, allocations: 201.7 kB / 0.6118 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005798/0.5256, allocations: 2.412 MB / 0.6141 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005084/0.5307, allocations: 3.331 MB / 0.6174 GB, free: 7.055 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0014/0.5321, allocations: 0.967 MB / 0.6183 GB, free: 6.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007113/0.5329, allocations: 0.5742 MB / 0.6189 GB, free: 5.508 MB / 462.1 MB Notification: Performance of Backend: time 3.91e-07/0.5329, allocations: 0 / 0.6189 GB, free: 5.508 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007138/0.54, allocations: 3.442 MB / 0.6223 GB, free: 2.09 MB / 462.1 MB Notification: Performance of SimCode: time 0.004732/0.5448, allocations: 3.396 MB / 0.6256 GB, free: 14.7 MB / 478.1 MB Notification: Performance of Templates: time 0.06645/0.6112, allocations: 50.68 MB / 0.6751 GB, free: 12.33 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)