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.09676/0.09676, allocations: 15.25 MB / 27.81 MB, free: 5.398 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 192.4 kB / 32.7 MB, free: 0.5156 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.308/1.308, allocations: 221.4 MB / 258.8 MB, free: 0 / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009064/0.0009063, allocations: 103 kB / 314 MB, free: 15.79 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.192e-05/3.206e-05, allocations: 4 kB / 376.6 MB, free: 1.355 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.307, allocations: 54.61 MB / 431.2 MB, free: 50.1 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1254/0.4324, allocations: 100.1 MB / 0.5188 GB, free: 15.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001903/0.4326, allocations: 64.84 kB / 0.5189 GB, free: 15.12 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4201/0.8527, allocations: 68.74 MB / 0.586 GB, free: 90.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.8528, allocations: 0 / 0.586 GB, free: 90.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.024e-05/0.8528, allocations: 38.38 kB / 0.586 GB, free: 90.1 MB / 442.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.004874/0.8577, allocations: 2.065 MB / 0.5881 GB, free: 89.21 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.8578, allocations: 10.8 kB / 0.5881 GB, free: 89.21 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000394/0.8582, allocations: 252.2 kB / 0.5883 GB, free: 89.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001812/0.86, allocations: 479.2 kB / 0.5888 GB, free: 89.06 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002309/0.8623, allocations: 1.071 MB / 0.5898 GB, free: 88.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002275/0.8626, allocations: 191.6 kB / 0.59 GB, free: 88.65 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003537/0.8629, allocations: 180.1 kB / 0.5902 GB, free: 88.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004572/0.8675, allocations: 3.009 MB / 0.5931 GB, free: 88.51 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.154e-05/0.8676, allocations: 1.094 kB / 0.5931 GB, free: 88.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000154/0.8677, allocations: 71.19 kB / 0.5932 GB, free: 88.51 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.035e-05/0.8678, allocations: 42.97 kB / 0.5932 GB, free: 88.51 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005664/0.8734, allocations: 4.26 MB / 0.5974 GB, free: 88.5 MB / 442.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.01487/0.8883, allocations: 8.787 MB / 0.606 GB, free: 86.41 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005159/0.8935, allocations: 4.025 MB / 0.6099 GB, free: 85.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.895, allocations: 1.524 MB / 0.6114 GB, free: 85.6 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006573/0.8956, allocations: 497.8 kB / 0.6119 GB, free: 85.47 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.8957, allocations: 59.75 kB / 0.6119 GB, free: 85.41 MB / 442.7 MB Notification: Performance of pre-optimization done (n=204): time 4.419e-06/0.8957, allocations: 0 / 0.6119 GB, free: 85.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=286): time 0.04698/0.9427, allocations: 13.88 MB / 0.6255 GB, free: 80.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01165/0.9544, allocations: 5.512 MB / 0.6308 GB, free: 76.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009727/0.9554, allocations: 0.7401 MB / 0.6316 GB, free: 76.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005201/0.9559, allocations: 73.77 kB / 0.6316 GB, free: 76.42 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003108/0.9562, allocations: 0.5767 MB / 0.6322 GB, free: 75.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001052/0.9573, allocations: 0.9484 MB / 0.6331 GB, free: 75.22 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003651/0.9577, allocations: 51.61 kB / 0.6332 GB, free: 75.18 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.9579, allocations: 409.6 kB / 0.6336 GB, free: 74.83 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002457/0.9603, allocations: 1.782 MB / 0.6353 GB, free: 74.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002635/0.963, allocations: 2.046 MB / 0.6373 GB, free: 73.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002732/0.9657, allocations: 1.943 MB / 0.6392 GB, free: 72.44 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.9657, allocations: 3.625 kB / 0.6392 GB, free: 72.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.0106/0.9763, allocations: 4.954 MB / 0.644 GB, free: 70.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/0.9764, allocations: 7.469 kB / 0.6441 GB, free: 70.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.746e-05/0.9764, allocations: 3.062 kB / 0.6441 GB, free: 70.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004876/0.9813, allocations: 0.7709 MB / 0.6448 GB, free: 70.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002937/0.9843, allocations: 0.5915 MB / 0.6454 GB, free: 70.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009789/0.9941, allocations: 8.446 MB / 0.6536 GB, free: 63.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002703/0.9968, allocations: 257.1 kB / 0.6539 GB, free: 62.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004401/0.9972, allocations: 121.1 kB / 0.654 GB, free: 62.96 MB / 442.7 MB 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 (292): * Single equations (assignments): 282 * 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.0005052/0.9978, allocations: 248.3 kB / 0.6542 GB, free: 62.74 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004185/0.9982, allocations: 154.6 kB / 0.6544 GB, free: 62.66 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01452/1.013, allocations: 5.66 MB / 0.6599 GB, free: 60.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01275/1.025, allocations: 5.119 MB / 0.6649 GB, free: 55.86 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.171e-05/1.026, allocations: 0.875 kB / 0.6649 GB, free: 55.86 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-05/1.026, allocations: 14.67 kB / 0.6649 GB, free: 55.86 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02149/1.047, allocations: 12.19 MB / 0.6768 GB, free: 45.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.71e-05/1.047, allocations: 12 kB / 0.6768 GB, free: 45.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002577/1.05, allocations: 0.5391 MB / 0.6774 GB, free: 45.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009401/1.059, allocations: 1.523 MB / 0.6788 GB, free: 44.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003733/1.06, allocations: 92.06 kB / 0.6789 GB, free: 44.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01546/1.075, allocations: 11.46 MB / 0.6901 GB, free: 33.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01068/1.086, allocations: 4.759 MB / 0.6948 GB, free: 28.58 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01737/1.103, allocations: 8.581 MB / 0.7032 GB, free: 20.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007569/1.104, allocations: 268.6 kB / 0.7034 GB, free: 20.07 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005792/1.105, allocations: 72.33 kB / 0.7035 GB, free: 20.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0023/1.107, allocations: 175.1 kB / 0.7036 GB, free: 19.88 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006461/1.108, allocations: 266.8 kB / 0.7039 GB, free: 19.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002985/1.108, allocations: 109.2 kB / 0.704 GB, free: 19.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007356/1.109, allocations: 0.5776 MB / 0.7046 GB, free: 19.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.109, allocations: 0 / 0.7046 GB, free: 19.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005138/1.114, allocations: 1.492 MB / 0.706 GB, free: 17.62 MB / 442.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 (272): * Single equations (assignments): 266 * 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.02078/1.135, allocations: 13.69 MB / 0.7194 GB, free: 3.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006989/1.142, allocations: 4.617 MB / 0.7239 GB, free: 15.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/1.142, allocations: 0 / 0.7239 GB, free: 15.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005427/1.147, allocations: 2.957 MB / 0.7268 GB, free: 12.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002323/1.149, allocations: 334 kB / 0.7271 GB, free: 11.99 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01563/1.165, allocations: 5.696 MB / 0.7327 GB, free: 6.078 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001742/1.167, allocations: 1.475 MB / 0.7341 GB, free: 4.57 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002264/1.169, allocations: 352.9 kB / 0.7345 GB, free: 4.234 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001661/1.171, allocations: 0.8232 MB / 0.7353 GB, free: 3.414 MB / 458.7 MB Notification: Performance of SimCode: time 1.092e-06/1.171, allocations: 0 / 0.7353 GB, free: 3.414 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3707/1.542, allocations: 67.76 MB / 0.8014 GB, free: 105.9 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/1.542, allocations: 167.2 kB / 0.8016 GB, free: 105.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.312/5.854, allocations: 0 / 0.8016 GB, free: 105.7 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)