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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07294/0.07294, allocations: 15.26 MB / 22.55 MB, free: 1.105 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009033/0.0009032, allocations: 191.4 kB / 27.31 MB, free: 0 / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.151/1.151, allocations: 221.4 MB / 253.3 MB, free: 10.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008628/0.0008629, allocations: 88.5 kB / 308.4 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2036/0.2045, allocations: 60.73 MB / 369.1 MB, free: 53.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07826/0.2828, allocations: 54.64 MB / 423.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2512/0.534, allocations: 102.6 MB / 0.514 GB, free: 8.223 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002032/0.5343, allocations: 76.89 kB / 0.5141 GB, free: 8.219 MB / 362.7 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.1544/0.6887, allocations: 66.18 MB / 0.5787 GB, free: 8.055 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.6887, allocations: 8 kB / 0.5787 GB, free: 8.047 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001881/0.6906, allocations: 469 kB / 0.5791 GB, free: 7.586 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002629/0.6932, allocations: 0.9828 MB / 0.5801 GB, free: 6.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.6934, allocations: 118.3 kB / 0.5802 GB, free: 6.441 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004677/0.6939, allocations: 91.91 kB / 0.5803 GB, free: 6.352 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005431/0.6993, allocations: 4.008 MB / 0.5842 GB, free: 2.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003023/0.7024, allocations: 2.098 MB / 0.5863 GB, free: 208 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.061e-05/0.7024, allocations: 4 kB / 0.5863 GB, free: 204 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.7026, allocations: 0 / 0.5863 GB, free: 204 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-05/0.7026, allocations: 32 kB / 0.5863 GB, free: 172 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01273/0.7154, allocations: 8.129 MB / 0.5942 GB, free: 7.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003261/0.7187, allocations: 2.702 MB / 0.5969 GB, free: 5.223 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001564/0.7203, allocations: 1.338 MB / 0.5982 GB, free: 3.891 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005238/0.7208, allocations: 419.9 kB / 0.5986 GB, free: 3.492 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.7208, allocations: 52.55 kB / 0.5986 GB, free: 3.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=170): time 4.198e-06/0.7209, allocations: 0 / 0.5986 GB, free: 3.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=225): time 0.03717/0.758, allocations: 11.29 MB / 0.6097 GB, free: 8.168 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.7581, allocations: 73.41 kB / 0.6097 GB, free: 8.082 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.7591, allocations: 0.8747 MB / 0.6106 GB, free: 7.203 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003003/0.7594, allocations: 33.64 kB / 0.6106 GB, free: 7.164 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002148/0.7597, allocations: 437 kB / 0.611 GB, free: 6.727 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000623/0.7603, allocations: 0.7195 MB / 0.6117 GB, free: 5.996 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.7604, allocations: 0 / 0.6117 GB, free: 5.996 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.7606, allocations: 438.9 kB / 0.6122 GB, free: 5.559 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001994/0.7626, allocations: 1.585 MB / 0.6137 GB, free: 3.969 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002059/0.7647, allocations: 1.812 MB / 0.6155 GB, free: 2.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004469/0.7692, allocations: 2.139 MB / 0.6176 GB, free: 15.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.7692, allocations: 0 / 0.6176 GB, free: 15.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01192/0.7811, allocations: 4.768 MB / 0.6222 GB, free: 11.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.7812, allocations: 8 kB / 0.6222 GB, free: 11.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/0.7812, allocations: 4.125 kB / 0.6222 GB, free: 11.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003716/0.7849, allocations: 0.6824 MB / 0.6229 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002368/0.7873, allocations: 467.3 kB / 0.6233 GB, free: 9.996 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006101/0.7935, allocations: 4.265 MB / 0.6275 GB, free: 5.473 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00273/0.7962, allocations: 147.7 kB / 0.6276 GB, free: 5.328 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002568/0.7965, allocations: 111.9 kB / 0.6278 GB, free: 5.219 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_liquid.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_liquid.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (241): * Single equations (assignments): 235 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 10,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004111/0.7969, allocations: 139.5 kB / 0.6279 GB, free: 5.078 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002717/0.7972, allocations: 126.4 kB / 0.628 GB, free: 4.953 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01448/0.8117, allocations: 5.216 MB / 0.6331 GB, free: 15.71 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01318/0.8249, allocations: 4.703 MB / 0.6377 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.8249, allocations: 3.906 kB / 0.6377 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-05/0.8249, allocations: 11.95 kB / 0.6377 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02025/0.8452, allocations: 10.59 MB / 0.6481 GB, free: 260 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/0.8453, allocations: 11.94 kB / 0.6481 GB, free: 248 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/0.8471, allocations: 419.3 kB / 0.6485 GB, free: 15.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007198/0.8543, allocations: 1.357 MB / 0.6498 GB, free: 14.46 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002717/0.8546, allocations: 51.92 kB / 0.6498 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0119/0.8665, allocations: 7.239 MB / 0.6569 GB, free: 6.922 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006057/0.8726, allocations: 2.386 MB / 0.6592 GB, free: 4.414 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1397/1.012, allocations: 7.797 MB / 0.6669 GB, free: 153.1 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01683/1.029, allocations: 10.45 MB / 0.6771 GB, free: 151.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004956/1.03, allocations: 243.5 kB / 0.6773 GB, free: 151.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002545/1.03, allocations: 16.23 kB / 0.6773 GB, free: 151.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/1.032, allocations: 88.11 kB / 0.6774 GB, free: 151.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002526/1.032, allocations: 166.8 kB / 0.6776 GB, free: 151.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001705/1.032, allocations: 100 kB / 0.6776 GB, free: 151.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0006388/1.033, allocations: 0.6874 MB / 0.6783 GB, free: 151.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004004/1.037, allocations: 1.446 MB / 0.6797 GB, free: 151.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 6 ($STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 217 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 10,7 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001843/1.038, allocations: 1.206 MB / 0.6809 GB, free: 151.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005353/1.044, allocations: 4.005 MB / 0.6848 GB, free: 150.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/1.044, allocations: 5.75 kB / 0.6848 GB, free: 150.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003305/1.047, allocations: 2.418 MB / 0.6872 GB, free: 150.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/1.049, allocations: 238.5 kB / 0.6874 GB, free: 150.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005145/1.054, allocations: 3.501 MB / 0.6908 GB, free: 149.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001308/1.055, allocations: 1.568 MB / 0.6924 GB, free: 148.8 MB / 474.7 MB Notification: Performance of SimCode: time 6.71e-07/1.055, allocations: 2.25 kB / 0.6924 GB, free: 148.8 MB / 474.7 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/linux/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)