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.0009903/0.0009905, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.0009052/0.0009052, allocations: 177.3 kB / 15.95 MB, free: 216 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.308/1.308, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2003/0.2003, allocations: 15.26 MB / 306.2 MB, free: 15.76 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003077, allocations: 8 kB / 371.5 MB, free: 3.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2884, allocations: 54.62 MB / 426.1 MB, free: 40.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.006346/0.2948, allocations: 7.575 MB / 433.7 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01791/0.3127, allocations: 20.4 MB / 454.1 MB, free: 23.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.3143, allocations: 35.62 kB / 454.1 MB, free: 23.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001113/0.3155, allocations: 481.7 kB / 454.6 MB, free: 23.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005074/0.3206, allocations: 2.126 MB / 456.7 MB, free: 21.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006166/0.3268, allocations: 2.686 MB / 459.4 MB, free: 20.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002484/0.3292, allocations: 1.598 MB / 461 MB, free: 19.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001151/0.3304, allocations: 1.064 MB / 462 MB, free: 18.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001583/0.332, allocations: 0.873 MB / 462.9 MB, free: 18.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.3335, allocations: 1.16 MB / 464.1 MB, free: 18.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002321/0.3338, allocations: 114.7 kB / 464.2 MB, free: 18.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008314/0.3421, allocations: 2.889 MB / 467.1 MB, free: 17.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005024/0.3426, allocations: 406.2 kB / 467.5 MB, free: 17.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006043/0.3432, allocations: 365.5 kB / 467.8 MB, free: 17.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006668/0.3499, allocations: 3.01 MB / 470.8 MB, free: 16.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3499, allocations: 0 / 470.8 MB, free: 16.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.35, allocations: 1.375 kB / 470.8 MB, free: 16.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.979e-05/0.35, allocations: 0 / 470.8 MB, free: 16.22 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.005292/0.3553, allocations: 2.202 MB / 473 MB, free: 14.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.3554, allocations: 9.828 kB / 473 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004303/0.3558, allocations: 255.8 kB / 473.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001859/0.3577, allocations: 417.6 kB / 473.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/0.3592, allocations: 0.8287 MB / 474.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.3594, allocations: 199.7 kB / 474.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002915/0.3597, allocations: 187 kB / 474.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003486/0.3632, allocations: 2.052 MB / 477 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.384e-05/0.3632, allocations: 5.594 kB / 477 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001662/0.3634, allocations: 74.56 kB / 477 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.699e-05/0.3635, allocations: 42.53 kB / 477.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004341/0.3678, allocations: 2.594 MB / 479.7 MB, free: 12.26 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.0105/0.3783, allocations: 6.54 MB / 486.2 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004201/0.3826, allocations: 3.112 MB / 489.3 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009037/0.3916, allocations: 7.932 MB / 497.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.166e-05/0.3917, allocations: 55.86 kB / 497.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 3.637e-06/0.3917, allocations: 0 / 497.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.02949/0.4212, allocations: 7.054 MB / 0.4926 GB, free: 6.168 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.138e-05/0.4213, allocations: 99.05 kB / 0.4926 GB, free: 6.051 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009912/0.4223, allocations: 0.7767 MB / 0.4934 GB, free: 5.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002042/0.4225, allocations: 57.7 kB / 0.4935 GB, free: 5.188 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004766/0.423, allocations: 0.7366 MB / 0.4942 GB, free: 4.438 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005045/0.4235, allocations: 0.6084 MB / 0.4948 GB, free: 3.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.855e-05/0.4236, allocations: 44 kB / 0.4948 GB, free: 3.777 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.4238, allocations: 381.9 kB / 0.4952 GB, free: 3.398 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.4248, allocations: 0.6091 MB / 0.4958 GB, free: 2.785 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.4262, allocations: 1.121 MB / 0.4969 GB, free: 1.438 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.4274, allocations: 0.7712 MB / 0.4976 GB, free: 0.668 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.4274, allocations: 4 kB / 0.4976 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007123/0.4346, allocations: 2.471 MB / 0.5 GB, free: 14.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.502e-05/0.4346, allocations: 16.17 kB / 0.5001 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/0.4347, allocations: 20 kB / 0.5001 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003959/0.4386, allocations: 0.4949 MB / 0.5006 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002444/0.4411, allocations: 0.5227 MB / 0.5011 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.4514, allocations: 7.037 MB / 0.5079 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.4531, allocations: 103.9 kB / 0.508 GB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/0.4533, allocations: 103.9 kB / 0.5081 GB, free: 5.336 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.0007106/0.454, allocations: 373.2 kB / 0.5085 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002717/0.4543, allocations: 134.3 kB / 0.5086 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007577/0.4619, allocations: 2.46 MB / 0.511 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-05/0.4619, allocations: 23.94 kB / 0.511 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.4619, allocations: 0 / 0.511 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-05/0.462, allocations: 15.95 kB / 0.5111 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009749/0.4717, allocations: 4.067 MB / 0.515 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.4718, allocations: 4 kB / 0.515 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001933/0.4737, allocations: 395.5 kB / 0.5154 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003889/0.4776, allocations: 486.8 kB / 0.5159 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001883/0.4778, allocations: 59.91 kB / 0.5159 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009538/0.4874, allocations: 6.882 MB / 0.5227 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.4874, allocations: 0 / 0.5227 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008403/0.4958, allocations: 3.157 MB / 0.5257 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004852/0.4963, allocations: 191.4 kB / 0.5259 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002292/0.4966, allocations: 36 kB / 0.526 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009983/0.4976, allocations: 72.28 kB / 0.526 GB, free: 2.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003282/0.4979, allocations: 145.8 kB / 0.5262 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/0.4981, allocations: 59.98 kB / 0.5262 GB, free: 2.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006777/0.4988, allocations: 0.5001 MB / 0.5267 GB, free: 1.609 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4988, allocations: 0 / 0.5267 GB, free: 1.609 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003375/0.5022, allocations: 1.023 MB / 0.5277 GB, free: 0.5859 MB / 398.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.0105/0.5127, allocations: 4.781 MB / 0.5324 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00359/0.5163, allocations: 2.249 MB / 0.5346 GB, free: 9.457 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.5163, allocations: 0 / 0.5346 GB, free: 9.457 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00201/0.5183, allocations: 1.385 MB / 0.5359 GB, free: 8.023 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00137/0.5197, allocations: 252.8 kB / 0.5362 GB, free: 7.773 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01268/0.5324, allocations: 16.16 MB / 0.552 GB, free: 7.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008719/0.5333, allocations: 1.308 MB / 0.5532 GB, free: 5.676 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001681/0.535, allocations: 355.3 kB / 0.5536 GB, free: 5.324 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001096/0.5361, allocations: 0.7764 MB / 0.5543 GB, free: 4.547 MB / 430.1 MB Notification: Performance of SimCode: time 1.523e-06/0.5361, allocations: 0 / 0.5543 GB, free: 4.547 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2372/0.7734, allocations: 47.37 MB / 0.6006 GB, free: 135.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001321/0.7735, allocations: 194.9 kB / 0.6008 GB, free: 135.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.095/3.868, allocations: 0 / 0.6008 GB, free: 135.7 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: