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: "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001234/0.001234, allocations: 197.8 kB / 16.14 MB, free: 6.688 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.236/1.236, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1726/0.1726, allocations: 15.31 MB / 305.3 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 63.91 kB / 369.8 MB, free: 4.355 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09047/0.09191, allocations: 53.61 MB / 423.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.008621/0.1006, allocations: 8.53 MB / 431.9 MB, free: 6.129 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1608/0.2614, allocations: 23.26 MB / 455.2 MB, free: 38.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00137/0.2628, allocations: 41.12 kB / 455.2 MB, free: 38.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.264, allocations: 426.5 kB / 455.6 MB, free: 37.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004246/0.2683, allocations: 1.732 MB / 457.4 MB, free: 36.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005892/0.2742, allocations: 2.557 MB / 459.9 MB, free: 35.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001898/0.2761, allocations: 2.071 MB / 462 MB, free: 34.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008679/0.277, allocations: 1.063 MB / 463 MB, free: 34.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007602/0.2778, allocations: 1.045 MB / 464.1 MB, free: 34.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009509/0.2787, allocations: 1.191 MB / 465.3 MB, free: 33.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002102/0.2789, allocations: 129 kB / 465.4 MB, free: 33.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005777/0.2847, allocations: 2.466 MB / 467.9 MB, free: 33.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003244/0.2851, allocations: 415.4 kB / 468.3 MB, free: 32.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007353/0.2858, allocations: 0.8974 MB / 469.2 MB, free: 32.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007351/0.2932, allocations: 4.398 MB / 473.6 MB, free: 30.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.2932, allocations: 0 / 473.6 MB, free: 30.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2932, allocations: 3.938 kB / 473.6 MB, free: 30.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.64e-05/0.2933, allocations: 0 / 473.6 MB, free: 30.57 MB / 366.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.004954/0.2982, allocations: 2.404 MB / 476 MB, free: 29.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.2983, allocations: 9.719 kB / 476 MB, free: 29.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000235/0.2985, allocations: 211.2 kB / 476.2 MB, free: 29.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001759/0.3003, allocations: 397.6 kB / 476.6 MB, free: 28.92 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.3015, allocations: 0.8565 MB / 477.4 MB, free: 28.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.3016, allocations: 169 kB / 477.6 MB, free: 28.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002407/0.3019, allocations: 160.4 kB / 477.8 MB, free: 28.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003053/0.3049, allocations: 2.022 MB / 479.8 MB, free: 27.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.305, allocations: 1.062 kB / 479.8 MB, free: 27.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001488/0.3051, allocations: 60.62 kB / 479.8 MB, free: 27.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.482e-05/0.3052, allocations: 35.16 kB / 479.9 MB, free: 27.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003673/0.3088, allocations: 2.699 MB / 482.6 MB, free: 26.54 MB / 366.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.01023/0.3191, allocations: 6.5 MB / 489.1 MB, free: 22.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004776/0.3239, allocations: 3.311 MB / 492.4 MB, free: 21.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/0.3251, allocations: 0.8891 MB / 493.3 MB, free: 21.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008629/0.3338, allocations: 7.215 MB / 0.4888 GB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.3339, allocations: 54.28 kB / 0.4888 GB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008387/0.3347, allocations: 169.2 kB / 0.489 GB, free: 15.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=117): time 3.827e-06/0.3347, allocations: 0 / 0.489 GB, free: 15.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01974/0.3545, allocations: 5.4 MB / 0.4943 GB, free: 12.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.3545, allocations: 68.66 kB / 0.4943 GB, free: 12.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009229/0.3555, allocations: 1.03 MB / 0.4953 GB, free: 11.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.3556, allocations: 53.64 kB / 0.4954 GB, free: 11.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002434/0.3559, allocations: 0.67 MB / 0.496 GB, free: 10.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002551/0.3561, allocations: 496.8 kB / 0.4965 GB, free: 10.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003757/0.3565, allocations: 339.3 kB / 0.4968 GB, free: 9.809 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.141e-05/0.3565, allocations: 301.1 kB / 0.4971 GB, free: 9.512 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008529/0.3574, allocations: 0.6481 MB / 0.4977 GB, free: 8.863 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.3584, allocations: 1.107 MB / 0.4988 GB, free: 7.566 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00191/0.3603, allocations: 1.8 MB / 0.5006 GB, free: 5.574 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.3604, allocations: 8 kB / 0.5006 GB, free: 5.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.005806/0.3662, allocations: 2.404 MB / 0.5029 GB, free: 3.145 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.3662, allocations: 15.94 kB / 0.503 GB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.3662, allocations: 16 kB / 0.503 GB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002684/0.3689, allocations: 491.9 kB / 0.5034 GB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.3702, allocations: 419.4 kB / 0.5038 GB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004563/0.3748, allocations: 3.499 MB / 0.5073 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001388/0.3762, allocations: 84.02 kB / 0.5073 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001566/0.3763, allocations: 91.97 kB / 0.5074 GB, free: 14.28 MB / 382.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.0005956/0.3769, allocations: 339.9 kB / 0.5077 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002499/0.3772, allocations: 122.4 kB / 0.5079 GB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006447/0.3836, allocations: 2.132 MB / 0.5099 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/0.3837, allocations: 16 kB / 0.51 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3837, allocations: 0 / 0.51 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.015e-05/0.3837, allocations: 7.969 kB / 0.51 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00827/0.392, allocations: 3.542 MB / 0.5134 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.392, allocations: 0 / 0.5134 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.3932, allocations: 275.7 kB / 0.5137 GB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002774/0.396, allocations: 474 kB / 0.5141 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001542/0.3961, allocations: 47.97 kB / 0.5142 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004646/0.4008, allocations: 3.398 MB / 0.5175 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4008, allocations: 4 kB / 0.5175 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006843/0.4077, allocations: 2.747 MB / 0.5202 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003632/0.408, allocations: 187.5 kB / 0.5204 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.4082, allocations: 24 kB / 0.5204 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008094/0.4091, allocations: 55.97 kB / 0.5204 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/0.4093, allocations: 125.1 kB / 0.5206 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.4095, allocations: 59.95 kB / 0.5206 GB, free: 348 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007844/0.4102, allocations: 0.7069 MB / 0.5213 GB, free: 15.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4103, allocations: 3.938 kB / 0.5213 GB, free: 15.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002583/0.4128, allocations: 0.9407 MB / 0.5222 GB, free: 14.67 MB / 398.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.008974/0.4218, allocations: 4.283 MB / 0.5264 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003371/0.4252, allocations: 2.005 MB / 0.5284 GB, free: 8.305 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4252, allocations: 0 / 0.5284 GB, free: 8.305 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001785/0.427, allocations: 1.147 MB / 0.5295 GB, free: 7.109 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.4284, allocations: 241.5 kB / 0.5297 GB, free: 6.875 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02324/0.4516, allocations: 13.5 MB / 0.5429 GB, free: 8.648 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006401/0.4523, allocations: 1.183 MB / 0.5441 GB, free: 7.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001345/0.4536, allocations: 332.9 kB / 0.5444 GB, free: 7.109 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008775/0.4545, allocations: 0.6583 MB / 0.545 GB, free: 6.453 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4545, allocations: 0 / 0.545 GB, free: 6.453 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0617/0.5162, allocations: 43.81 MB / 0.5878 GB, free: 10.89 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002136/0.5165, allocations: 231.8 kB / 0.588 GB, free: 10.63 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.865/3.381, allocations: 3.938 kB / 0.588 GB, free: 10.62 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater.fmu > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)