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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.077/0.077, allocations: 15.26 MB / 22.74 MB, free: 0.9648 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.0009061/0.0009061, allocations: 184.9 kB / 27.52 MB, free: 6.117 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.199/1.199, allocations: 221.5 MB / 253.7 MB, free: 10.41 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.0008038/0.0008037, allocations: 98.38 kB / 308.7 MB, free: 10.47 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.463e-05/1.466e-05, allocations: 3.031 kB / 369.7 MB, free: 53.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07216/0.07219, allocations: 54.65 MB / 424.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2962/0.3684, allocations: 99.41 MB / 0.5114 GB, free: 14.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001563/0.3686, allocations: 63.27 kB / 0.5115 GB, free: 14.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1426/0.5112, allocations: 67.76 MB / 0.5777 GB, free: 15.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.5112, allocations: 0 / 0.5777 GB, free: 15.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.678e-05/0.5113, allocations: 36 kB / 0.5777 GB, free: 15.35 MB / 394.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.003759/0.515, allocations: 2.076 MB / 0.5797 GB, free: 13.24 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.5151, allocations: 12.02 kB / 0.5798 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001437/0.5165, allocations: 480.8 kB / 0.5802 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/0.5183, allocations: 1.066 MB / 0.5813 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.5185, allocations: 134.9 kB / 0.5814 GB, free: 11.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000211/0.5187, allocations: 103.9 kB / 0.5815 GB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004779/0.5235, allocations: 4.161 MB / 0.5855 GB, free: 7.25 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/0.5265, allocations: 2.269 MB / 0.5878 GB, free: 4.949 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.833e-05/0.5265, allocations: 0 / 0.5878 GB, free: 4.949 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/0.5267, allocations: 0 / 0.5878 GB, free: 4.949 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-05/0.5267, allocations: 47.95 kB / 0.5878 GB, free: 4.902 MB / 394.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01112/0.5378, allocations: 8.489 MB / 0.5961 GB, free: 12.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004331/0.5422, allocations: 3.951 MB / 0.6 GB, free: 8.168 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001534/0.5437, allocations: 1.454 MB / 0.6014 GB, free: 6.707 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006759/0.5444, allocations: 0.4966 MB / 0.6019 GB, free: 6.227 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.5445, allocations: 57.19 kB / 0.6019 GB, free: 6.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=204): time 3.857e-06/0.5445, allocations: 0 / 0.6019 GB, free: 6.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=278): time 0.04416/0.5886, allocations: 13.75 MB / 0.6153 GB, free: 8.375 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.5887, allocations: 111.7 kB / 0.6154 GB, free: 8.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00077/0.5895, allocations: 0.6443 MB / 0.6161 GB, free: 7.605 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002182/0.5897, allocations: 25.7 kB / 0.6161 GB, free: 7.574 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003558/0.5901, allocations: 0.5837 MB / 0.6167 GB, free: 6.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006763/0.5908, allocations: 0.8849 MB / 0.6175 GB, free: 6.082 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.5909, allocations: 0 / 0.6175 GB, free: 6.082 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002179/0.5911, allocations: 455.8 kB / 0.618 GB, free: 5.629 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002017/0.5932, allocations: 1.7 MB / 0.6196 GB, free: 3.926 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002172/0.5953, allocations: 1.954 MB / 0.6215 GB, free: 1.898 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004323/0.5997, allocations: 2.251 MB / 0.6237 GB, free: 15.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/0.5997, allocations: 0 / 0.6237 GB, free: 15.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=320) (initialization): time 0.01133/0.611, allocations: 5.069 MB / 0.6287 GB, free: 10.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.6111, allocations: 8 kB / 0.6287 GB, free: 10.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.6111, allocations: 12.55 kB / 0.6287 GB, free: 10.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004487/0.6156, allocations: 0.7033 MB / 0.6294 GB, free: 9.809 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002752/0.6184, allocations: 0.5811 MB / 0.63 GB, free: 9.227 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009902/0.6283, allocations: 8.188 MB / 0.638 GB, free: 0.5273 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002426/0.6307, allocations: 215.5 kB / 0.6382 GB, free: 324 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002217/0.631, allocations: 115.9 kB / 0.6383 GB, free: 208 kB / 442.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.0004273/0.6314, allocations: 169.9 kB / 0.6384 GB, free: 32 kB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0151/0.6465, allocations: 5.414 MB / 0.6437 GB, free: 10.59 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004881/0.647, allocations: 150.1 kB / 0.6439 GB, free: 10.44 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01592/0.663, allocations: 5.766 MB / 0.6495 GB, free: 4.637 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01458/0.6776, allocations: 5.271 MB / 0.6546 GB, free: 15.34 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.6776, allocations: 3.984 kB / 0.6546 GB, free: 15.34 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.418e-05/0.6777, allocations: 11.95 kB / 0.6547 GB, free: 15.32 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03182/0.7095, allocations: 12.04 MB / 0.6664 GB, free: 3.113 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-05/0.7096, allocations: 12 kB / 0.6664 GB, free: 3.102 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003919/0.7135, allocations: 0.5274 MB / 0.6669 GB, free: 2.574 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01237/0.7259, allocations: 1.464 MB / 0.6684 GB, free: 1.094 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003949/0.7263, allocations: 47.94 kB / 0.6684 GB, free: 1.047 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2158/0.9421, allocations: 11.36 MB / 0.6795 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.009766/0.9519, allocations: 4.591 MB / 0.684 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01589/0.9678, allocations: 8.669 MB / 0.6925 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003999/0.9683, allocations: 255.5 kB / 0.6927 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002028/0.9685, allocations: 18.95 kB / 0.6927 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001513/0.97, allocations: 127.4 kB / 0.6928 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000381/0.9704, allocations: 253.1 kB / 0.6931 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001428/0.9705, allocations: 110 kB / 0.6932 GB, free: 104.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004229/0.971, allocations: 0.5037 MB / 0.6937 GB, free: 104.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.971, allocations: 0 / 0.6937 GB, free: 104.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003179/0.9742, allocations: 1.454 MB / 0.6951 GB, free: 104.4 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.01649/0.9907, allocations: 13.72 MB / 0.7085 GB, free: 98.74 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004194/0.9949, allocations: 4.368 MB / 0.7128 GB, free: 98.29 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.9949, allocations: 2.188 kB / 0.7128 GB, free: 98.29 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003089/0.998, allocations: 2.805 MB / 0.7155 GB, free: 97.83 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.9994, allocations: 279.1 kB / 0.7158 GB, free: 97.82 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008578/1.008, allocations: 5.362 MB / 0.721 GB, free: 96.38 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006605/1.009, allocations: 1.472 MB / 0.7225 GB, free: 95.64 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001207/1.01, allocations: 337.3 kB / 0.7228 GB, free: 95.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009544/1.011, allocations: 0.8031 MB / 0.7236 GB, free: 95.59 MB / 474.7 MB Notification: Performance of SimCode: time 4.91e-07/1.011, allocations: 0 / 0.7236 GB, free: 95.59 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07449/1.085, allocations: 62.06 MB / 0.7842 GB, free: 59.5 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001209/1.086, allocations: 125 kB / 0.7843 GB, free: 59.31 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.684/4.77, allocations: 4.031 kB / 0.7843 GB, free: 59.31 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)