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.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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.001196/0.001196, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 193.1 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.834/2.834, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2472/0.2472, allocations: 15.32 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002823/0.002824, allocations: 63.91 kB / 370.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2751, allocations: 53.61 MB / 424.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.02162/0.2968, allocations: 8.382 MB / 432.4 MB, free: 5.777 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.6008/0.8977, allocations: 24.15 MB / 456.6 MB, free: 36.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003585/0.9014, allocations: 20.62 kB / 456.6 MB, free: 36.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003873/0.9054, allocations: 0.5091 MB / 457.1 MB, free: 36.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01699/0.9224, allocations: 2.15 MB / 459.3 MB, free: 35.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02096/0.9435, allocations: 3.002 MB / 462.3 MB, free: 33.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008447/0.952, allocations: 2.426 MB / 464.7 MB, free: 33.04 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005306/0.9574, allocations: 1.407 MB / 466.1 MB, free: 32.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00454/0.9621, allocations: 1.204 MB / 467.3 MB, free: 31.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006021/0.9682, allocations: 1.348 MB / 468.7 MB, free: 31.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002194/0.9705, allocations: 214 kB / 468.9 MB, free: 31.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02567/0.9962, allocations: 2.662 MB / 471.5 MB, free: 30.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002946/0.9993, allocations: 0.504 MB / 472 MB, free: 30.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00505/1.004, allocations: 1.078 MB / 473.1 MB, free: 29.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03275/1.037, allocations: 5.042 MB / 478.2 MB, free: 27.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.812e-05/1.037, allocations: 0 / 478.2 MB, free: 27.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.588e-06/1.037, allocations: 0 / 478.2 MB, free: 27.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000212/1.038, allocations: 0 / 478.2 MB, free: 27.59 MB / 366.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.0214/1.059, allocations: 2.658 MB / 480.8 MB, free: 26.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001282/1.059, allocations: 10.61 kB / 480.8 MB, free: 26.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001392/1.061, allocations: 249 kB / 481.1 MB, free: 25.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005197/1.066, allocations: 415.5 kB / 481.5 MB, free: 25.78 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005828/1.072, allocations: 0.9297 MB / 482.4 MB, free: 25.19 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005454/1.072, allocations: 187.7 kB / 482.6 MB, free: 25.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001716/1.074, allocations: 183.1 kB / 482.8 MB, free: 25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/1.086, allocations: 2.088 MB / 484.8 MB, free: 24.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.718e-05/1.086, allocations: 0.5625 kB / 484.8 MB, free: 24.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004482/1.086, allocations: 71.88 kB / 484.9 MB, free: 24.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001096/1.086, allocations: 46.06 kB / 485 MB, free: 24.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01258/1.099, allocations: 2.606 MB / 487.6 MB, free: 23.38 MB / 366.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.0313/1.13, allocations: 6.68 MB / 494.2 MB, free: 19.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01078/1.141, allocations: 3.13 MB / 497.4 MB, free: 17.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00377/1.145, allocations: 0.9215 MB / 498.3 MB, free: 17.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02195/1.167, allocations: 8.145 MB / 0.4946 GB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.94e-05/1.167, allocations: 51 kB / 0.4946 GB, free: 11.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 1.16e-05/1.167, allocations: 0 / 0.4946 GB, free: 11.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.05263/1.22, allocations: 6.998 MB / 0.5015 GB, free: 4.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.037e-05/1.22, allocations: 99.11 kB / 0.5016 GB, free: 4.609 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001719/1.222, allocations: 0.7844 MB / 0.5023 GB, free: 3.801 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006936/1.223, allocations: 57.7 kB / 0.5024 GB, free: 3.738 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008614/1.224, allocations: 0.7328 MB / 0.5031 GB, free: 2.992 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001785/1.225, allocations: 0.6122 MB / 0.5037 GB, free: 2.371 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001346/1.227, allocations: 355.4 kB / 0.504 GB, free: 2.016 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/1.227, allocations: 305.1 kB / 0.5043 GB, free: 1.715 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002573/1.23, allocations: 0.617 MB / 0.5049 GB, free: 1.094 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002409/1.232, allocations: 1.129 MB / 0.506 GB, free: 15.74 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00616/1.238, allocations: 1.925 MB / 0.5079 GB, free: 13.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.35e-05/1.238, allocations: 4 kB / 0.5079 GB, free: 13.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.01655/1.255, allocations: 2.474 MB / 0.5103 GB, free: 11.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.345e-05/1.255, allocations: 12 kB / 0.5103 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.531e-05/1.255, allocations: 16 kB / 0.5103 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006856/1.262, allocations: 471.3 kB / 0.5108 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005416/1.268, allocations: 0.5266 MB / 0.5113 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02444/1.292, allocations: 7.672 MB / 0.5188 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003737/1.296, allocations: 64 kB / 0.5189 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008705/1.297, allocations: 104 kB / 0.519 GB, free: 1.691 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.002397/1.299, allocations: 381 kB / 0.5193 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/1.301, allocations: 134.3 kB / 0.5195 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01759/1.318, allocations: 2.431 MB / 0.5218 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.437e-05/1.318, allocations: 20 kB / 0.5218 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-05/1.318, allocations: 0 / 0.5218 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001062/1.319, allocations: 7.969 kB / 0.5219 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02415/1.343, allocations: 4.095 MB / 0.5259 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.173e-05/1.343, allocations: 0 / 0.5259 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004476/1.347, allocations: 391.5 kB / 0.5262 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00641/1.354, allocations: 462.8 kB / 0.5267 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007665/1.355, allocations: 49.11 kB / 0.5267 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02067/1.375, allocations: 7.521 MB / 0.5341 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/1.375, allocations: 0.6094 kB / 0.5341 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01918/1.395, allocations: 3.139 MB / 0.5371 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/1.396, allocations: 191.4 kB / 0.5373 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001123/1.397, allocations: 32 kB / 0.5373 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002575/1.4, allocations: 43.94 kB / 0.5374 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009409/1.401, allocations: 141.9 kB / 0.5375 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004464/1.401, allocations: 67.97 kB / 0.5376 GB, free: 13.92 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001605/1.403, allocations: 0.5079 MB / 0.5381 GB, free: 13.4 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.7e-07/1.403, allocations: 0 / 0.5381 GB, free: 13.4 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.007879/1.411, allocations: 1.058 MB / 0.5391 GB, free: 12.34 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01642/1.427, allocations: 4.732 MB / 0.5437 GB, free: 7.566 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01055/1.438, allocations: 2.362 MB / 0.546 GB, free: 5.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/1.438, allocations: 0 / 0.546 GB, free: 5.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004671/1.443, allocations: 1.4 MB / 0.5474 GB, free: 3.711 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004282/1.447, allocations: 316.9 kB / 0.5477 GB, free: 3.418 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05892/1.506, allocations: 13.82 MB / 0.5612 GB, free: 4.652 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001764/1.508, allocations: 1.28 MB / 0.5625 GB, free: 3.344 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00309/1.511, allocations: 351 kB / 0.5628 GB, free: 2.996 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001813/1.513, allocations: 0.7711 MB / 0.5635 GB, free: 2.23 MB / 430.1 MB Notification: Performance of SimCode: time 1.393e-06/1.513, allocations: 4 kB / 0.5635 GB, free: 2.227 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7672/2.28, allocations: 50.05 MB / 0.6124 GB, free: 135.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 30.55/32.83, allocations: 2.969 kB / 0.6124 GB, free: 135.6 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.AcidBase.WaterSelfIonization_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_AcidBase_WaterSelfIonization.fmu > Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe 2>&1)