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.005037/0.005037, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001296/0.001296, allocations: 201.9 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1966/0.1966, allocations: 15.32 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 59.91 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2642, allocations: 53.61 MB / 478.3 MB, free: 25.56 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.008223/0.2725, allocations: 8.381 MB / 486.7 MB, free: 19.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02556/0.2981, allocations: 24.17 MB / 0.4989 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001708/0.2998, allocations: 21.62 kB / 0.4989 GB, free: 15.92 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002225/0.3021, allocations: 0.5129 MB / 0.4994 GB, free: 15.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008823/0.3109, allocations: 2.166 MB / 0.5015 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009824/0.3208, allocations: 3.025 MB / 0.5045 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004532/0.3253, allocations: 2.433 MB / 0.5069 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002283/0.3277, allocations: 1.407 MB / 0.5082 GB, free: 8.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00256/0.3302, allocations: 1.216 MB / 0.5094 GB, free: 7.109 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003295/0.3335, allocations: 1.343 MB / 0.5107 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008577/0.3344, allocations: 220 kB / 0.5109 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01094/0.3454, allocations: 2.652 MB / 0.5135 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008023/0.3462, allocations: 0.518 MB / 0.514 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001966/0.3482, allocations: 1.07 MB / 0.5151 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01343/0.3616, allocations: 5.097 MB / 0.5201 GB, free: 12.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3617, allocations: 4 kB / 0.5201 GB, free: 12.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3617, allocations: 0 / 0.5201 GB, free: 12.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.237e-05/0.3618, allocations: 0 / 0.5201 GB, free: 12.17 MB / 398.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.007201/0.369, allocations: 2.718 MB / 0.5227 GB, free: 9.391 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.3691, allocations: 12.03 kB / 0.5227 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006109/0.3697, allocations: 249.5 kB / 0.523 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002206/0.3719, allocations: 419 kB / 0.5234 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002018/0.3739, allocations: 0.9638 MB / 0.5243 GB, free: 7.707 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002478/0.3742, allocations: 195.5 kB / 0.5245 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003806/0.3746, allocations: 188.2 kB / 0.5247 GB, free: 7.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003704/0.3783, allocations: 2.085 MB / 0.5267 GB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.998e-05/0.3784, allocations: 3.938 kB / 0.5267 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001864/0.3786, allocations: 75.98 kB / 0.5268 GB, free: 5.125 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.25e-05/0.3786, allocations: 44 kB / 0.5268 GB, free: 5.082 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004039/0.3827, allocations: 2.604 MB / 0.5294 GB, free: 2.477 MB / 398.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.01039/0.3931, allocations: 6.636 MB / 0.5359 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004501/0.3976, allocations: 3.132 MB / 0.5389 GB, free: 8.312 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.3989, allocations: 0.929 MB / 0.5398 GB, free: 7.375 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01011/0.409, allocations: 8.147 MB / 0.5478 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/0.4091, allocations: 51.81 kB / 0.5478 GB, free: 14.24 MB / 430.1 MB Notification: Performance of pre-optimization done (n=144): time 3.256e-06/0.4091, allocations: 0 / 0.5478 GB, free: 14.24 MB / 430.1 MB Notification: Performance of matching and sorting (n=180): time 0.02877/0.4379, allocations: 7.037 MB / 0.5547 GB, free: 7.059 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.683e-05/0.438, allocations: 99.11 kB / 0.5548 GB, free: 6.941 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009878/0.439, allocations: 0.7884 MB / 0.5556 GB, free: 6.129 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002393/0.4393, allocations: 57.7 kB / 0.5556 GB, free: 6.066 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004568/0.4397, allocations: 0.7507 MB / 0.5563 GB, free: 5.305 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005333/0.4403, allocations: 0.6507 MB / 0.557 GB, free: 4.648 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004783/0.4408, allocations: 363.4 kB / 0.5573 GB, free: 4.285 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.014e-05/0.4409, allocations: 309 kB / 0.5576 GB, free: 3.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.4419, allocations: 0.6131 MB / 0.5582 GB, free: 3.363 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.4433, allocations: 1.133 MB / 0.5593 GB, free: 2.004 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002628/0.446, allocations: 1.921 MB / 0.5612 GB, free: 15.87 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.026e-06/0.446, allocations: 4 kB / 0.5612 GB, free: 15.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007106/0.4531, allocations: 2.468 MB / 0.5636 GB, free: 13.38 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.4531, allocations: 12 kB / 0.5636 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.211e-05/0.4532, allocations: 23.97 kB / 0.5637 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003745/0.4569, allocations: 471.2 kB / 0.5641 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002468/0.4594, allocations: 0.5188 MB / 0.5646 GB, free: 12.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.4699, allocations: 7.683 MB / 0.5721 GB, free: 4.125 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/0.4715, allocations: 63.98 kB / 0.5722 GB, free: 4.062 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001961/0.4717, allocations: 104 kB / 0.5723 GB, free: 3.961 MB / 446.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.0007151/0.4724, allocations: 385.1 kB / 0.5726 GB, free: 3.574 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003334/0.4727, allocations: 143.1 kB / 0.5728 GB, free: 3.434 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007234/0.48, allocations: 2.434 MB / 0.5752 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.01e-05/0.48, allocations: 20 kB / 0.5752 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.48, allocations: 0 / 0.5752 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/0.4801, allocations: 7.969 kB / 0.5752 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009852/0.4899, allocations: 4.074 MB / 0.5792 GB, free: 12.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/0.49, allocations: 4 kB / 0.5792 GB, free: 12.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/0.4922, allocations: 391.5 kB / 0.5795 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003691/0.4959, allocations: 462.9 kB / 0.58 GB, free: 11.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002692/0.4962, allocations: 51.97 kB / 0.58 GB, free: 11.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009722/0.5059, allocations: 7.532 MB / 0.5874 GB, free: 3.812 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.5059, allocations: 3.938 kB / 0.5874 GB, free: 3.809 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008124/0.5141, allocations: 3.14 MB / 0.5904 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003352/0.5144, allocations: 204.1 kB / 0.5906 GB, free: 432 kB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001909/0.5146, allocations: 39.94 kB / 0.5907 GB, free: 392 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008719/0.5155, allocations: 39.98 kB / 0.5907 GB, free: 352 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002773/0.5158, allocations: 137.8 kB / 0.5909 GB, free: 216 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.5159, allocations: 67.97 kB / 0.5909 GB, free: 148 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006256/0.5166, allocations: 0.504 MB / 0.5914 GB, free: 15.63 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5166, allocations: 7.938 kB / 0.5914 GB, free: 15.62 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002727/0.5193, allocations: 1.072 MB / 0.5925 GB, free: 14.55 MB / 478.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.01004/0.5294, allocations: 4.739 MB / 0.5971 GB, free: 9.762 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003671/0.533, allocations: 2.257 MB / 0.5993 GB, free: 7.457 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.5331, allocations: 3.938 kB / 0.5993 GB, free: 7.453 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002122/0.5352, allocations: 1.404 MB / 0.6007 GB, free: 6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001718/0.5369, allocations: 305.1 kB / 0.601 GB, free: 5.707 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2175/0.7544, allocations: 13.14 MB / 0.6138 GB, free: 117.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009538/0.7554, allocations: 1.275 MB / 0.615 GB, free: 117 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00132/0.7567, allocations: 349.8 kB / 0.6154 GB, free: 117 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009867/0.7577, allocations: 0.7737 MB / 0.6161 GB, free: 116.5 MB / 478.1 MB Notification: Performance of SimCode: time 7.31e-07/0.7577, allocations: 1.344 kB / 0.6161 GB, free: 116.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0836/0.8414, allocations: 50.57 MB / 0.6655 GB, free: 79.95 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.54/22.38, allocations: 4 kB / 0.6655 GB, free: 79.95 MB / 478.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)