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/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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008581/0.0008581, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.0009412/0.0009413, allocations: 172.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1872/0.1872, allocations: 15.26 MB / 306.3 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000305/0.000305, allocations: 12 kB / 371.6 MB, free: 3.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2546, allocations: 54.61 MB / 426.2 MB, free: 40.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.006698/0.2613, allocations: 8.453 MB / 434.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01762/0.279, allocations: 22.04 MB / 456.7 MB, free: 21.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001386/0.2804, allocations: 36 kB / 456.7 MB, free: 21.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001163/0.2816, allocations: 464.4 kB / 457.2 MB, free: 21.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0051/0.2867, allocations: 1.874 MB / 459 MB, free: 20 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006226/0.2929, allocations: 2.441 MB / 461.5 MB, free: 18.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002448/0.2954, allocations: 2.23 MB / 463.7 MB, free: 17.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.2965, allocations: 1.062 MB / 464.8 MB, free: 17.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.2975, allocations: 0.9642 MB / 465.7 MB, free: 16.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001186/0.2987, allocations: 1.201 MB / 466.9 MB, free: 16.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002164/0.2989, allocations: 112.9 kB / 467 MB, free: 16.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007501/0.3064, allocations: 2.41 MB / 469.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004681/0.3069, allocations: 406.7 kB / 469.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005117/0.3074, allocations: 366.5 kB / 470.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005425/0.3129, allocations: 3.754 MB / 474 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3129, allocations: 4 kB / 474 MB, free: 13.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3129, allocations: 0 / 474 MB, free: 13.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.986e-05/0.313, allocations: 1.375 kB / 474 MB, free: 13.95 MB / 350.1 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.004604/0.3176, allocations: 2.207 MB / 476.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.3176, allocations: 9.344 kB / 476.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002848/0.3179, allocations: 248.2 kB / 476.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001672/0.3196, allocations: 414.8 kB / 476.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.3208, allocations: 0.8723 MB / 477.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/0.3209, allocations: 194.5 kB / 477.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002631/0.3212, allocations: 183.1 kB / 478.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003356/0.3246, allocations: 2.068 MB / 480.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.273e-05/0.3246, allocations: 3.938 kB / 480.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001695/0.3248, allocations: 71.31 kB / 480.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.281e-05/0.3248, allocations: 46.22 kB / 480.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004071/0.3289, allocations: 2.595 MB / 482.9 MB, free: 9.992 MB / 350.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.009626/0.3385, allocations: 6.598 MB / 489.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004035/0.3426, allocations: 3.114 MB / 492.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.3437, allocations: 0.9172 MB / 493.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009925/0.3537, allocations: 7.995 MB / 0.4897 GB, free: 9.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.3537, allocations: 43.88 kB / 0.4898 GB, free: 9.195 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 2.986e-06/0.3538, allocations: 0 / 0.4898 GB, free: 9.195 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.02972/0.3835, allocations: 7.07 MB / 0.4967 GB, free: 1.977 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.3836, allocations: 99.11 kB / 0.4968 GB, free: 1.859 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009964/0.3846, allocations: 0.7806 MB / 0.4975 GB, free: 1.055 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002045/0.3848, allocations: 57.7 kB / 0.4976 GB, free: 0.9922 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000448/0.3853, allocations: 0.725 MB / 0.4983 GB, free: 260 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005484/0.3858, allocations: 0.6123 MB / 0.4989 GB, free: 15.63 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.3859, allocations: 40 kB / 0.4989 GB, free: 15.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3861, allocations: 381.9 kB / 0.4993 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001097/0.3872, allocations: 0.6091 MB / 0.4999 GB, free: 14.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.3886, allocations: 1.125 MB / 0.501 GB, free: 13.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.3899, allocations: 0.7712 MB / 0.5017 GB, free: 12.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.3899, allocations: 4 kB / 0.5017 GB, free: 12.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007123/0.397, allocations: 2.483 MB / 0.5042 GB, free: 9.969 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.397, allocations: 12.19 kB / 0.5042 GB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.3971, allocations: 16 kB / 0.5042 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003818/0.4009, allocations: 498.9 kB / 0.5047 GB, free: 9.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002174/0.4031, allocations: 0.5227 MB / 0.5052 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009907/0.413, allocations: 6.972 MB / 0.512 GB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.4144, allocations: 103.9 kB / 0.5121 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/0.4146, allocations: 103.9 kB / 0.5122 GB, free: 1.211 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (246): * Single equations (assignments): 242 * 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: 4 * 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: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006833/0.4153, allocations: 377.1 kB / 0.5125 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002709/0.4156, allocations: 134.3 kB / 0.5127 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007594/0.4232, allocations: 2.461 MB / 0.5151 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.667e-05/0.4232, allocations: 16 kB / 0.5151 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.4232, allocations: 8 kB / 0.5151 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.902e-05/0.4232, allocations: 11.95 kB / 0.5151 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009293/0.4325, allocations: 4.087 MB / 0.5191 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.4326, allocations: 0 / 0.5191 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001866/0.4344, allocations: 395.5 kB / 0.5195 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003729/0.4382, allocations: 482.8 kB / 0.5199 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/0.4384, allocations: 55.97 kB / 0.52 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009335/0.4477, allocations: 6.815 MB / 0.5266 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.4477, allocations: 4.031 kB / 0.5266 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008377/0.4561, allocations: 3.135 MB / 0.5297 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004671/0.4566, allocations: 191.4 kB / 0.5299 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003028/0.4569, allocations: 39.98 kB / 0.5299 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.458, allocations: 71.81 kB / 0.53 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/0.4584, allocations: 141.7 kB / 0.5301 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001508/0.4585, allocations: 71.97 kB / 0.5302 GB, free: 14.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007611/0.4593, allocations: 0.4923 MB / 0.5307 GB, free: 13.57 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4593, allocations: 0 / 0.5307 GB, free: 13.57 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003906/0.4632, allocations: 1.038 MB / 0.5317 GB, free: 12.53 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (solution.temperature,H3O.logn,OH.logn,H2O.logn,solution1.temperature,H_.logn,OH_.logn,H2O_.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 (178): * Single equations (assignments): 174 * 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: 4 * 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: 2 {1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01079/0.474, allocations: 4.696 MB / 0.5363 GB, free: 7.785 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003647/0.4777, allocations: 2.242 MB / 0.5385 GB, free: 5.492 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4777, allocations: 0 / 0.5385 GB, free: 5.492 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001924/0.4796, allocations: 1.388 MB / 0.5398 GB, free: 4.059 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/0.4814, allocations: 295.9 kB / 0.5401 GB, free: 3.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01893/0.5004, allocations: 9.938 MB / 0.5498 GB, free: 9.289 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009196/0.5013, allocations: 1.284 MB / 0.5511 GB, free: 7.969 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001653/0.503, allocations: 347.3 kB / 0.5514 GB, free: 7.625 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001118/0.5041, allocations: 0.7725 MB / 0.5522 GB, free: 6.852 MB / 430.1 MB Notification: Performance of SimCode: time 8.02e-07/0.5041, allocations: 0 / 0.5522 GB, free: 6.852 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.236/0.7401, allocations: 47.7 MB / 0.5987 GB, free: 133.6 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001328/0.7403, allocations: 203.7 kB / 0.5989 GB, free: 133.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.198/3.939, allocations: 0 / 0.5989 GB, free: 133.4 MB / 462.1 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) Environment - environmentSimulation: