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.007277/0.007277, allocations: 97.23 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.001893/0.001893, allocations: 196.8 kB / 16.68 MB, free: 5.973 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1903/0.1903, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 64.09 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2417, allocations: 53.61 MB / 478.3 MB, free: 25.64 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.007711/0.2494, allocations: 8.384 MB / 486.7 MB, free: 19.63 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02009/0.2696, allocations: 24.17 MB / 0.4989 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001224/0.2708, allocations: 22.53 kB / 0.4989 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.2722, allocations: 0.5025 MB / 0.4994 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005732/0.278, allocations: 2.157 MB / 0.5015 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008157/0.2862, allocations: 3.003 MB / 0.5045 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003532/0.2897, allocations: 2.435 MB / 0.5068 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001722/0.2915, allocations: 1.403 MB / 0.5082 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001634/0.2931, allocations: 1.208 MB / 0.5094 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001948/0.2951, allocations: 1.343 MB / 0.5107 GB, free: 5.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003792/0.2955, allocations: 216 kB / 0.5109 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008552/0.304, allocations: 2.664 MB / 0.5135 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006231/0.3047, allocations: 0.5064 MB / 0.514 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001389/0.3061, allocations: 1.081 MB / 0.5151 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01335/0.3194, allocations: 5.097 MB / 0.52 GB, free: 12.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3195, allocations: 0 / 0.52 GB, free: 12.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3195, allocations: 0 / 0.52 GB, free: 12.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.123e-05/0.3196, allocations: 0 / 0.52 GB, free: 12.25 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.005493/0.3251, allocations: 2.718 MB / 0.5227 GB, free: 9.469 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.3251, allocations: 8.031 kB / 0.5227 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003076/0.3255, allocations: 249.5 kB / 0.5229 GB, free: 9.207 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001757/0.3272, allocations: 423 kB / 0.5233 GB, free: 8.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.3288, allocations: 0.9638 MB / 0.5243 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.329, allocations: 195.4 kB / 0.5245 GB, free: 7.582 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002828/0.3293, allocations: 184.3 kB / 0.5246 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003476/0.3328, allocations: 2.096 MB / 0.5267 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.447e-05/0.3328, allocations: 0 / 0.5267 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001799/0.333, allocations: 64 kB / 0.5267 GB, free: 5.211 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.904e-05/0.3331, allocations: 48 kB / 0.5268 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004247/0.3373, allocations: 2.612 MB / 0.5293 GB, free: 2.551 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.01054/0.3479, allocations: 6.628 MB / 0.5358 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005106/0.353, allocations: 3.132 MB / 0.5389 GB, free: 8.391 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.3544, allocations: 0.9212 MB / 0.5398 GB, free: 7.461 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01143/0.3659, allocations: 8.151 MB / 0.5477 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.3659, allocations: 55.75 kB / 0.5478 GB, free: 14.32 MB / 430.1 MB Notification: Performance of pre-optimization done (n=144): time 3.787e-06/0.366, allocations: 0 / 0.5478 GB, free: 14.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=180): time 0.0301/0.3961, allocations: 7.033 MB / 0.5547 GB, free: 7.141 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.224e-05/0.3962, allocations: 99.05 kB / 0.5548 GB, free: 7.023 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/0.3975, allocations: 0.7923 MB / 0.5555 GB, free: 6.207 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002876/0.3978, allocations: 53.7 kB / 0.5556 GB, free: 6.148 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000653/0.3985, allocations: 0.7624 MB / 0.5563 GB, free: 5.375 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007626/0.3992, allocations: 0.6429 MB / 0.5569 GB, free: 4.727 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000579/0.3998, allocations: 363.5 kB / 0.5573 GB, free: 4.363 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3999, allocations: 305.1 kB / 0.5576 GB, free: 4.062 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.4011, allocations: 0.617 MB / 0.5582 GB, free: 3.441 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/0.4027, allocations: 1.129 MB / 0.5593 GB, free: 2.086 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002951/0.4056, allocations: 1.917 MB / 0.5612 GB, free: 15.96 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.4056, allocations: 4 kB / 0.5612 GB, free: 15.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007441/0.4131, allocations: 2.48 MB / 0.5636 GB, free: 13.45 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.4131, allocations: 8 kB / 0.5636 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.102e-05/0.4132, allocations: 16 kB / 0.5636 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003762/0.4169, allocations: 475.2 kB / 0.5641 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002344/0.4193, allocations: 0.5266 MB / 0.5646 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/0.4304, allocations: 7.672 MB / 0.5721 GB, free: 4.207 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.4319, allocations: 67.98 kB / 0.5721 GB, free: 4.141 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001995/0.4321, allocations: 104 kB / 0.5722 GB, free: 4.039 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.0007077/0.4328, allocations: 373.2 kB / 0.5726 GB, free: 3.664 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000316/0.4331, allocations: 147.1 kB / 0.5727 GB, free: 3.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007713/0.4409, allocations: 2.43 MB / 0.5751 GB, free: 1.062 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-05/0.4409, allocations: 20 kB / 0.5751 GB, free: 1.043 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.4409, allocations: 0 / 0.5751 GB, free: 1.043 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.959e-05/0.4409, allocations: 11.97 kB / 0.5751 GB, free: 1.031 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00977/0.4507, allocations: 4.077 MB / 0.5791 GB, free: 12.89 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.4508, allocations: 0 / 0.5791 GB, free: 12.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002082/0.4528, allocations: 399.5 kB / 0.5795 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003728/0.4566, allocations: 450.9 kB / 0.5799 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001802/0.4568, allocations: 59.97 kB / 0.58 GB, free: 11.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/0.4673, allocations: 7.524 MB / 0.5873 GB, free: 3.902 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4673, allocations: 0 / 0.5873 GB, free: 3.902 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008473/0.4758, allocations: 3.144 MB / 0.5904 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004149/0.4763, allocations: 204.1 kB / 0.5906 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002134/0.4765, allocations: 43.94 kB / 0.5906 GB, free: 480 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008188/0.4773, allocations: 39.98 kB / 0.5907 GB, free: 440 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003414/0.4777, allocations: 137.8 kB / 0.5908 GB, free: 304 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001454/0.4778, allocations: 63.98 kB / 0.5909 GB, free: 240 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000691/0.4785, allocations: 0.5078 MB / 0.5914 GB, free: 15.71 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4785, allocations: 0 / 0.5914 GB, free: 15.71 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002927/0.4815, allocations: 1.072 MB / 0.5924 GB, free: 14.64 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.01082/0.4923, allocations: 4.762 MB / 0.5971 GB, free: 9.836 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004109/0.4964, allocations: 2.261 MB / 0.5993 GB, free: 7.527 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4965, allocations: 0 / 0.5993 GB, free: 7.527 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002334/0.4988, allocations: 1.389 MB / 0.6006 GB, free: 6.09 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.5005, allocations: 306.1 kB / 0.6009 GB, free: 5.797 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2327/0.7332, 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.001153/0.7344, allocations: 1.28 MB / 0.615 GB, free: 117 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001316/0.7358, allocations: 349.2 kB / 0.6153 GB, free: 117 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009588/0.7367, allocations: 0.7757 MB / 0.6161 GB, free: 116.5 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/0.7367, allocations: 1.344 kB / 0.6161 GB, free: 116.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1308/0.8675, allocations: 50.56 MB / 0.6655 GB, free: 80.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.54/22.41, allocations: 7.031 kB / 0.6655 GB, free: 80.01 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 & /home/hudson/saved_omc/OMSimulator/install/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)