Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.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.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") translateModel(Chemical.Examples.AcidBase.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 104.2 kB / 16.4 MB, free: 6.5 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.00176/0.00176, allocations: 189.6 kB / 17.34 MB, free: 5.762 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.344/1.344, allocations: 222.9 MB / 241 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.07941/0.07941, allocations: 15.3 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 67.91 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08961/0.09081, allocations: 53.62 MB / 479.5 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.008193/0.09903, allocations: 7.54 MB / 487 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02534/0.1244, allocations: 23.32 MB / 0.4984 GB, free: 6.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.1255, allocations: 23.88 kB / 0.4984 GB, free: 6.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001472/0.127, allocations: 476.4 kB / 0.4988 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005875/0.1329, allocations: 1.94 MB / 0.5007 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007619/0.1406, allocations: 2.912 MB / 0.5036 GB, free: 1.434 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2199/0.3605, allocations: 2.133 MB / 0.5057 GB, free: 5.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002019/0.3626, allocations: 1.238 MB / 0.5069 GB, free: 5.812 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001465/0.364, allocations: 1.065 MB / 0.5079 GB, free: 5.812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001775/0.3658, allocations: 1.211 MB / 0.5091 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000345/0.3662, allocations: 193.8 kB / 0.5093 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006661/0.3728, allocations: 2.507 MB / 0.5117 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004578/0.3733, allocations: 475.5 kB / 0.5122 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001022/0.3744, allocations: 0.9501 MB / 0.5131 GB, free: 5.449 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009114/0.3835, allocations: 4.694 MB / 0.5177 GB, free: 5.066 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3835, allocations: 0 / 0.5177 GB, free: 5.066 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3835, allocations: 0 / 0.5177 GB, free: 5.066 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.941e-05/0.3836, allocations: 1.156 kB / 0.5177 GB, free: 5.066 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.005234/0.3888, allocations: 2.395 MB / 0.52 GB, free: 3.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.3888, allocations: 11.44 kB / 0.52 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001796/0.3907, allocations: 394 kB / 0.5204 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001452/0.3921, allocations: 0.8923 MB / 0.5213 GB, free: 3.504 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.3923, allocations: 167.5 kB / 0.5215 GB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002872/0.3926, allocations: 153.8 kB / 0.5216 GB, free: 3.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003097/0.3957, allocations: 2.033 MB / 0.5236 GB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.027e-05/0.3957, allocations: 4.812 kB / 0.5236 GB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001702/0.3959, allocations: 56.47 kB / 0.5236 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.343e-05/0.3959, allocations: 34.78 kB / 0.5237 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003585/0.3995, allocations: 2.698 MB / 0.5263 GB, free: 2.367 MB / 382.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.01015/0.4097, allocations: 6.479 MB / 0.5326 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004777/0.4145, allocations: 3.317 MB / 0.5359 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.4158, allocations: 0.8859 MB / 0.5367 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009731/0.4255, allocations: 7.207 MB / 0.5438 GB, free: 6.285 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.4256, allocations: 47.56 kB / 0.5438 GB, free: 6.23 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008919/0.4265, allocations: 166.2 kB / 0.544 GB, free: 6.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=117): time 3.687e-06/0.4265, allocations: 0 / 0.544 GB, free: 6.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=140): time 0.02127/0.4478, allocations: 5.401 MB / 0.5493 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.4478, allocations: 64.72 kB / 0.5493 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/0.4491, allocations: 1.04 MB / 0.5503 GB, free: 15.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.4492, allocations: 49.64 kB / 0.5504 GB, free: 15.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004182/0.4497, allocations: 0.6759 MB / 0.551 GB, free: 14.72 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003834/0.4501, allocations: 491.6 kB / 0.5515 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004672/0.4505, allocations: 335.2 kB / 0.5518 GB, free: 13.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.495e-05/0.4506, allocations: 305.1 kB / 0.5521 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.4517, allocations: 0.6442 MB / 0.5528 GB, free: 12.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.453, allocations: 1.109 MB / 0.5538 GB, free: 11.67 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002454/0.4555, allocations: 1.809 MB / 0.5556 GB, free: 9.727 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.4555, allocations: 4 kB / 0.5556 GB, free: 9.723 MB / 414.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006755/0.4623, allocations: 2.404 MB / 0.558 GB, free: 7.387 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.4623, allocations: 11.94 kB / 0.558 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/0.4623, allocations: 16 kB / 0.558 GB, free: 7.359 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002933/0.4653, allocations: 493.6 kB / 0.5584 GB, free: 6.871 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001513/0.4668, allocations: 419.8 kB / 0.5588 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00551/0.4723, allocations: 3.855 MB / 0.5626 GB, free: 2.379 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.4738, allocations: 63.92 kB / 0.5627 GB, free: 2.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/0.474, allocations: 95.95 kB / 0.5628 GB, free: 2.223 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (212): * Single equations (assignments): 209 * 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 {(2,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.0006445/0.4746, allocations: 338.9 kB / 0.5631 GB, free: 1.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002621/0.4749, allocations: 122.5 kB / 0.5632 GB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006395/0.4813, allocations: 2.128 MB / 0.5653 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.4813, allocations: 20 kB / 0.5653 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.4813, allocations: 7.938 kB / 0.5653 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.4814, allocations: 11.34 kB / 0.5653 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007848/0.4892, allocations: 3.543 MB / 0.5688 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.912e-06/0.4892, allocations: 0 / 0.5688 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.4903, allocations: 274.1 kB / 0.569 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00272/0.4931, allocations: 462 kB / 0.5695 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.4932, allocations: 51.97 kB / 0.5695 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004892/0.4981, allocations: 3.771 MB / 0.5732 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4981, allocations: 0 / 0.5732 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006856/0.505, allocations: 2.752 MB / 0.5759 GB, free: 4.477 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003408/0.5053, allocations: 183.6 kB / 0.5761 GB, free: 4.277 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001846/0.5055, allocations: 31.94 kB / 0.5761 GB, free: 4.246 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007495/0.5063, allocations: 28 kB / 0.5761 GB, free: 4.219 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/0.5066, allocations: 125.1 kB / 0.5763 GB, free: 4.098 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.5067, allocations: 59.97 kB / 0.5763 GB, free: 4.039 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007913/0.5075, allocations: 0.7069 MB / 0.577 GB, free: 3.32 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5075, allocations: 3.938 kB / 0.577 GB, free: 3.316 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0028/0.5103, allocations: 0.9369 MB / 0.5779 GB, free: 2.379 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (solution.temperature,HCO3.logn,H.logn,CO2_liquid.logn,liquidWater.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 (144): * Single equations (assignments): 141 * 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 {(2,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.001974/0.5123, allocations: 1.102 MB / 0.579 GB, free: 1.41 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003333/0.5156, allocations: 2.007 MB / 0.581 GB, free: 15.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.5156, allocations: 0 / 0.581 GB, free: 15.41 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001794/0.5174, allocations: 1.146 MB / 0.5821 GB, free: 14.24 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.5186, allocations: 258.3 kB / 0.5823 GB, free: 13.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004453/0.5231, allocations: 2.688 MB / 0.5849 GB, free: 11.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006806/0.5238, allocations: 1.187 MB / 0.5861 GB, free: 10.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006603/0.5245, allocations: 271.2 kB / 0.5864 GB, free: 9.809 MB / 446.1 MB Notification: Performance of SimCode: time 4.81e-07/0.5245, allocations: 0 / 0.5864 GB, free: 9.809 MB / 446.1 MB Notification: Performance of Templates: time 0.04796/0.5724, allocations: 43.15 MB / 0.6285 GB, free: 14.8 MB / 494.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.makefile (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.sim & ./Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)