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.008146/0.008146, allocations: 97.3 kB / 15.73 MB, free: 6.039 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.001871/0.001871, allocations: 201.8 kB / 16.68 MB, free: 5.961 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1947/0.1947, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 59.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2709, allocations: 53.61 MB / 478.3 MB, free: 25.61 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.00857/0.2795, allocations: 8.388 MB / 486.7 MB, free: 19.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02238/0.3019, allocations: 24.17 MB / 0.4989 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001578/0.3035, allocations: 21.38 kB / 0.4989 GB, free: 15.9 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.3052, allocations: 0.5017 MB / 0.4994 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006677/0.312, allocations: 2.157 MB / 0.5015 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008483/0.3205, allocations: 2.999 MB / 0.5045 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004069/0.3246, allocations: 2.437 MB / 0.5068 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00196/0.3265, allocations: 1.403 MB / 0.5082 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001876/0.3284, allocations: 1.212 MB / 0.5094 GB, free: 7.164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002111/0.3306, allocations: 1.343 MB / 0.5107 GB, free: 5.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000415/0.331, allocations: 216 kB / 0.5109 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01037/0.3414, allocations: 2.656 MB / 0.5135 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007625/0.3422, allocations: 0.5141 MB / 0.514 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001793/0.344, allocations: 1.077 MB / 0.5151 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01446/0.3584, allocations: 5.09 MB / 0.52 GB, free: 12.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/0.3585, allocations: 4 kB / 0.52 GB, free: 12.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3585, allocations: 4 kB / 0.52 GB, free: 12.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.602e-05/0.3586, allocations: 0 / 0.52 GB, free: 12.23 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.005883/0.3645, allocations: 2.718 MB / 0.5227 GB, free: 9.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.3645, allocations: 16.03 kB / 0.5227 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003097/0.3648, allocations: 245.5 kB / 0.5229 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001778/0.3666, allocations: 423 kB / 0.5233 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001614/0.3682, allocations: 0.9599 MB / 0.5243 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001945/0.3685, allocations: 191.5 kB / 0.5245 GB, free: 7.562 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003176/0.3688, allocations: 192.2 kB / 0.5246 GB, free: 7.375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003412/0.3722, allocations: 2.088 MB / 0.5267 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.111e-05/0.3722, allocations: 0 / 0.5267 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001811/0.3724, allocations: 72 kB / 0.5267 GB, free: 5.184 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-05/0.3725, allocations: 44 kB / 0.5268 GB, free: 5.141 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004186/0.3767, allocations: 2.612 MB / 0.5293 GB, free: 2.527 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.01136/0.3881, allocations: 6.636 MB / 0.5358 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005087/0.3932, allocations: 3.132 MB / 0.5389 GB, free: 8.359 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.3946, allocations: 0.9212 MB / 0.5398 GB, free: 7.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01176/0.4064, allocations: 8.143 MB / 0.5477 GB, free: 14.36 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.87e-05/0.4065, allocations: 55.81 kB / 0.5478 GB, free: 14.3 MB / 430.1 MB Notification: Performance of pre-optimization done (n=144): time 2.976e-06/0.4065, allocations: 0 / 0.5478 GB, free: 14.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=180): time 0.03181/0.4383, allocations: 7.039 MB / 0.5547 GB, free: 7.113 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.001e-05/0.4384, allocations: 103.1 kB / 0.5548 GB, free: 6.992 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.4396, allocations: 0.7884 MB / 0.5555 GB, free: 6.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001793/0.4397, allocations: 57.7 kB / 0.5556 GB, free: 6.117 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006234/0.4404, allocations: 0.7507 MB / 0.5563 GB, free: 5.355 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005945/0.441, allocations: 0.6429 MB / 0.5569 GB, free: 4.707 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005427/0.4415, allocations: 363.5 kB / 0.5573 GB, free: 4.344 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.4417, allocations: 305.1 kB / 0.5576 GB, free: 4.043 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.4428, allocations: 0.617 MB / 0.5582 GB, free: 3.422 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001638/0.4445, allocations: 1.133 MB / 0.5593 GB, free: 2.062 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003003/0.4475, allocations: 1.921 MB / 0.5612 GB, free: 15.93 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.4475, allocations: 4 kB / 0.5612 GB, free: 15.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008053/0.4556, allocations: 2.471 MB / 0.5636 GB, free: 13.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.473e-05/0.4556, allocations: 13 kB / 0.5636 GB, free: 13.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.537e-05/0.4557, allocations: 16 kB / 0.5636 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004075/0.4598, allocations: 470.9 kB / 0.5641 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/0.4623, allocations: 0.5305 MB / 0.5646 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01153/0.4738, allocations: 7.674 MB / 0.5721 GB, free: 4.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.4753, allocations: 60 kB / 0.5721 GB, free: 4.121 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001943/0.4755, allocations: 111.9 kB / 0.5722 GB, free: 4.012 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.0007203/0.4762, allocations: 373.1 kB / 0.5726 GB, free: 3.637 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003285/0.4766, allocations: 147.1 kB / 0.5727 GB, free: 3.492 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008187/0.4848, allocations: 2.434 MB / 0.5751 GB, free: 1.031 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.93e-05/0.4848, allocations: 20 kB / 0.5751 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.4848, allocations: 0 / 0.5751 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.347e-05/0.4848, allocations: 11.95 kB / 0.5751 GB, free: 1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01044/0.4953, allocations: 4.074 MB / 0.5791 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.4953, allocations: 48 / 0.5791 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002187/0.4975, allocations: 399.5 kB / 0.5795 GB, free: 12.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004041/0.5016, allocations: 454.9 kB / 0.5799 GB, free: 12.01 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002301/0.5018, allocations: 51.98 kB / 0.58 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01171/0.5136, allocations: 7.524 MB / 0.5873 GB, free: 3.879 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5136, allocations: 4.062 kB / 0.5873 GB, free: 3.875 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009298/0.5229, allocations: 3.147 MB / 0.5904 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003881/0.5234, allocations: 204.1 kB / 0.5906 GB, free: 492 kB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/0.5236, allocations: 39.94 kB / 0.5906 GB, free: 452 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008897/0.5245, allocations: 32 kB / 0.5907 GB, free: 420 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003388/0.5248, allocations: 137.8 kB / 0.5908 GB, free: 284 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/0.525, allocations: 67.97 kB / 0.5909 GB, free: 216 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007064/0.5257, allocations: 0.504 MB / 0.5914 GB, free: 15.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5257, allocations: 3.938 kB / 0.5914 GB, free: 15.69 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003067/0.5288, allocations: 1.075 MB / 0.5924 GB, free: 14.61 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.01123/0.54, allocations: 4.754 MB / 0.5971 GB, free: 9.816 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004046/0.5441, allocations: 2.257 MB / 0.5993 GB, free: 7.512 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.5441, allocations: 0 / 0.5993 GB, free: 7.512 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002204/0.5463, allocations: 1.396 MB / 0.6006 GB, free: 6.066 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00157/0.5479, allocations: 313.5 kB / 0.6009 GB, free: 5.766 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2338/0.7817, allocations: 13.13 MB / 0.6137 GB, free: 117.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009351/0.7827, allocations: 1.279 MB / 0.615 GB, free: 117 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001235/0.7839, allocations: 353.8 kB / 0.6153 GB, free: 116.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009053/0.7848, allocations: 0.7692 MB / 0.6161 GB, free: 116.4 MB / 478.1 MB Notification: Performance of SimCode: time 6.31e-07/0.7848, allocations: 0 / 0.6161 GB, free: 116.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1367/0.9215, allocations: 50.57 MB / 0.6655 GB, free: 80.03 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.4/23.32, allocations: 6.812 kB / 0.6655 GB, free: 80.03 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)