Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.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.WaterSelfIonization,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_WaterSelfIonization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.WaterSelfIonization,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_WaterSelfIonization",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.07224/0.07224, allocations: 15.26 MB / 22.54 MB, free: 2.91 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.001134/0.001134, allocations: 193.4 kB / 27.31 MB, free: 4.301 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.131/1.131, allocations: 221.4 MB / 253.3 MB, free: 10.33 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.0008416/0.0008415, allocations: 92.55 kB / 308.4 MB, free: 10.61 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1981/0.199, allocations: 60.73 MB / 369.1 MB, free: 53.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07548/0.2745, allocations: 54.63 MB / 423.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2536/0.5281, allocations: 99.34 MB / 0.5108 GB, free: 8.156 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001966/0.5284, allocations: 67.09 kB / 0.5109 GB, free: 8.156 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: 446 * Number of variables: 446 Notification: Performance of Generate backend data structure: time 0.1667/0.6951, allocations: 70.07 MB / 0.5793 GB, free: 7.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.6951, allocations: 12 kB / 0.5793 GB, free: 7.008 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00213/0.6973, allocations: 496.7 kB / 0.5798 GB, free: 6.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002373/0.6997, allocations: 1.071 MB / 0.5809 GB, free: 5.422 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/0.6998, allocations: 130.9 kB / 0.581 GB, free: 5.281 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004297/0.7003, allocations: 115.8 kB / 0.5811 GB, free: 5.168 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005824/0.7061, allocations: 4.185 MB / 0.5852 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003803/0.7099, allocations: 2.27 MB / 0.5874 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.061e-05/0.71, allocations: 3.938 kB / 0.5874 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000166/0.7102, allocations: 4 kB / 0.5874 GB, free: 14.67 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.613e-05/0.7102, allocations: 40 kB / 0.5874 GB, free: 14.63 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01297/0.7232, allocations: 8.622 MB / 0.5959 GB, free: 5.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003365/0.7266, allocations: 2.973 MB / 0.5988 GB, free: 2.863 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001653/0.7283, allocations: 1.456 MB / 0.6002 GB, free: 1.402 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006684/0.729, allocations: 0.4951 MB / 0.6007 GB, free: 0.918 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.729, allocations: 56.56 kB / 0.6007 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of pre-optimization done (n=204): time 3.857e-06/0.729, allocations: 0 / 0.6007 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of matching and sorting (n=278): time 0.05519/0.7842, allocations: 13.88 MB / 0.6143 GB, free: 2.922 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.464e-05/0.7843, allocations: 103.8 kB / 0.6144 GB, free: 2.801 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009483/0.7853, allocations: 0.6559 MB / 0.615 GB, free: 2.141 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003393/0.7856, allocations: 25.7 kB / 0.615 GB, free: 2.109 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003451/0.786, allocations: 485.8 kB / 0.6155 GB, free: 1.621 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001004/0.787, allocations: 0.8888 MB / 0.6164 GB, free: 0.7188 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002218/0.7872, allocations: 3.938 kB / 0.6164 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002582/0.7875, allocations: 459.8 kB / 0.6168 GB, free: 264 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002405/0.7899, allocations: 1.711 MB / 0.6185 GB, free: 14.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002364/0.7923, allocations: 1.962 MB / 0.6204 GB, free: 12.51 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00488/0.7972, allocations: 2.302 MB / 0.6226 GB, free: 10.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.7972, allocations: 0 / 0.6226 GB, free: 10.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=320) (initialization): time 0.01315/0.8104, allocations: 5.184 MB / 0.6277 GB, free: 4.996 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.8104, allocations: 12.03 kB / 0.6277 GB, free: 4.984 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.8104, allocations: 7.906 kB / 0.6277 GB, free: 4.977 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005312/0.8157, allocations: 0.7152 MB / 0.6284 GB, free: 4.242 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003145/0.8189, allocations: 0.5845 MB / 0.629 GB, free: 3.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/0.8302, allocations: 8.092 MB / 0.6369 GB, free: 11.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002972/0.8332, allocations: 147.8 kB / 0.637 GB, free: 10.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005974/0.8338, allocations: 119.9 kB / 0.6372 GB, free: 10.79 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H2O_.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: H2O_.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H2O.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: H2O.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: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (284): * Single equations (assignments): 274 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 6,1 3,1 6,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007734/0.8346, allocations: 148.5 kB / 0.6373 GB, free: 10.64 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005665/0.8352, allocations: 142.2 kB / 0.6374 GB, free: 10.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01849/0.8537, allocations: 5.879 MB / 0.6432 GB, free: 4.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01682/0.8705, allocations: 5.324 MB / 0.6484 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.025e-05/0.8706, allocations: 4 kB / 0.6484 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.004e-05/0.8706, allocations: 15.94 kB / 0.6484 GB, free: 15.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02633/0.8969, allocations: 12.02 MB / 0.6601 GB, free: 3.066 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-05/0.897, allocations: 12 kB / 0.6601 GB, free: 3.055 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002811/0.8998, allocations: 0.5424 MB / 0.6607 GB, free: 2.512 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0103/0.9101, allocations: 1.455 MB / 0.6621 GB, free: 1.043 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003881/0.9105, allocations: 59.88 kB / 0.6621 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1318/1.042, allocations: 11.17 MB / 0.6731 GB, free: 145.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01064/1.053, allocations: 4.482 MB / 0.6774 GB, free: 142.8 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01759/1.071, allocations: 8.805 MB / 0.686 GB, free: 141 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01977/1.09, allocations: 11.66 MB / 0.6974 GB, free: 138.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004637/1.091, allocations: 249 kB / 0.6977 GB, free: 138.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002564/1.091, allocations: 20.98 kB / 0.6977 GB, free: 138.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/1.093, allocations: 95.98 kB / 0.6978 GB, free: 138.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002667/1.093, allocations: 199.3 kB / 0.698 GB, free: 138.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001703/1.093, allocations: 111.2 kB / 0.6981 GB, free: 138.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0004518/1.094, allocations: 0.5001 MB / 0.6986 GB, free: 138.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004101/1.098, allocations: 1.538 MB / 0.7001 GB, free: 138.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 8 ($STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$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 (264): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 6,5 8,1 6,5 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.002051/1.1, allocations: 1.258 MB / 0.7013 GB, free: 138.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006425/1.106, allocations: 4.491 MB / 0.7057 GB, free: 138 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/1.106, allocations: 0 / 0.7057 GB, free: 138 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003572/1.11, allocations: 2.72 MB / 0.7083 GB, free: 137.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/1.112, allocations: 270.6 kB / 0.7086 GB, free: 137.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009581/1.121, allocations: 4.71 MB / 0.7132 GB, free: 136.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001593/1.123, allocations: 1.685 MB / 0.7148 GB, free: 135.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.142e-06/1.123, allocations: 0 / 0.7148 GB, free: 135.6 MB / 474.7 MB (rm -f Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_WaterSelfIonization_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_WaterSelfIonization.fmu > Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe 2>&1)