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.006589/0.006589, allocations: 100.4 kB / 15.73 MB, free: 5.98 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.00124/0.00124, allocations: 192.1 kB / 16.67 MB, free: 5.918 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2069/0.2069, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 63.91 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2744, allocations: 53.61 MB / 478.3 MB, free: 25.69 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.008857/0.2833, allocations: 8.395 MB / 486.7 MB, free: 19.6 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0224/0.3057, allocations: 24.16 MB / 0.4989 GB, free: 15.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00159/0.3073, allocations: 20.09 kB / 0.4989 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00178/0.3092, allocations: 0.5099 MB / 0.4994 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006944/0.3162, allocations: 2.146 MB / 0.5015 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008606/0.3248, allocations: 3.006 MB / 0.5045 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003877/0.3287, allocations: 2.431 MB / 0.5068 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002083/0.3308, allocations: 1.407 MB / 0.5082 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001969/0.3328, allocations: 1.208 MB / 0.5094 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002267/0.3351, allocations: 1.359 MB / 0.5107 GB, free: 5.801 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006523/0.3358, allocations: 216 kB / 0.5109 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009082/0.3448, allocations: 2.649 MB / 0.5135 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008639/0.3457, allocations: 0.5141 MB / 0.514 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001984/0.3477, allocations: 1.073 MB / 0.515 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01312/0.3609, allocations: 5.076 MB / 0.52 GB, free: 12.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.3609, allocations: 4 kB / 0.52 GB, free: 12.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3609, allocations: 0 / 0.52 GB, free: 12.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.604e-05/0.361, 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.006293/0.3673, allocations: 2.65 MB / 0.5226 GB, free: 9.539 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.3674, allocations: 12.03 kB / 0.5226 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004096/0.3678, allocations: 249.5 kB / 0.5228 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001923/0.3697, allocations: 414 kB / 0.5232 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.3714, allocations: 0.9553 MB / 0.5242 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.3716, allocations: 199.4 kB / 0.5244 GB, free: 7.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003526/0.372, allocations: 180.3 kB / 0.5245 GB, free: 7.484 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003559/0.3755, allocations: 2.085 MB / 0.5266 GB, free: 5.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.384e-05/0.3756, allocations: 3.938 kB / 0.5266 GB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/0.3758, allocations: 72 kB / 0.5266 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.273e-05/0.3758, allocations: 44 kB / 0.5267 GB, free: 5.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003975/0.3798, allocations: 2.608 MB / 0.5292 GB, free: 2.641 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.01074/0.3906, allocations: 6.619 MB / 0.5357 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004696/0.3953, allocations: 3.136 MB / 0.5388 GB, free: 8.484 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001352/0.3966, allocations: 0.9251 MB / 0.5397 GB, free: 7.551 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01071/0.4074, allocations: 8.139 MB / 0.5476 GB, free: 14.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.407e-05/0.4075, allocations: 55.8 kB / 0.5477 GB, free: 14.42 MB / 430.1 MB Notification: Performance of pre-optimization done (n=144): time 2.985e-06/0.4075, allocations: 0 / 0.5477 GB, free: 14.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=180): time 0.03111/0.4386, allocations: 6.991 MB / 0.5545 GB, free: 7.281 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.639e-05/0.4387, allocations: 103 kB / 0.5546 GB, free: 7.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.4398, allocations: 0.7806 MB / 0.5554 GB, free: 6.355 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002612/0.4401, allocations: 61.7 kB / 0.5554 GB, free: 6.289 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004973/0.4406, allocations: 0.7405 MB / 0.5561 GB, free: 5.535 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006729/0.4413, allocations: 0.6084 MB / 0.5567 GB, free: 4.918 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000655/0.442, allocations: 359.3 kB / 0.5571 GB, free: 4.559 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.4421, allocations: 309 kB / 0.5574 GB, free: 4.254 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.4432, allocations: 0.617 MB / 0.558 GB, free: 3.633 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/0.4447, allocations: 1.133 MB / 0.5591 GB, free: 2.273 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002744/0.4475, allocations: 1.917 MB / 0.5609 GB, free: 148 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.37e-05/0.4475, allocations: 4 kB / 0.5609 GB, free: 144 kB / 430.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007905/0.4554, allocations: 2.463 MB / 0.5634 GB, free: 13.65 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.023e-05/0.4555, allocations: 12 kB / 0.5634 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-05/0.4555, allocations: 16 kB / 0.5634 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004195/0.4597, allocations: 479.5 kB / 0.5638 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002635/0.4624, allocations: 0.5227 MB / 0.5643 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/0.4734, allocations: 7.665 MB / 0.5718 GB, free: 4.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.4749, allocations: 68.05 kB / 0.5719 GB, free: 4.344 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003371/0.4752, allocations: 104 kB / 0.572 GB, free: 4.242 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.0008975/0.4762, allocations: 373.1 kB / 0.5724 GB, free: 3.867 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004527/0.4766, allocations: 134.3 kB / 0.5725 GB, free: 3.734 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008074/0.4847, allocations: 2.453 MB / 0.5749 GB, free: 1.254 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.458e-05/0.4848, allocations: 20 kB / 0.5749 GB, free: 1.234 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.4848, allocations: 0 / 0.5749 GB, free: 1.234 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.384e-05/0.4848, allocations: 7.969 kB / 0.5749 GB, free: 1.227 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0106/0.4954, allocations: 4.07 MB / 0.5789 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/0.4955, allocations: 0 / 0.5789 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002119/0.4976, allocations: 391.5 kB / 0.5793 GB, free: 12.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003953/0.5016, allocations: 462.9 kB / 0.5797 GB, free: 12.24 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002766/0.5019, allocations: 55.97 kB / 0.5797 GB, free: 12.19 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00995/0.5118, allocations: 7.524 MB / 0.5871 GB, free: 4.105 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5119, allocations: 0 / 0.5871 GB, free: 4.105 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008876/0.5207, allocations: 3.135 MB / 0.5902 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003515/0.5211, allocations: 191.4 kB / 0.5903 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003712/0.5215, allocations: 39.94 kB / 0.5904 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.5226, allocations: 35.98 kB / 0.5904 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003477/0.5229, allocations: 137.8 kB / 0.5905 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/0.5231, allocations: 67.97 kB / 0.5906 GB, free: 472 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007097/0.5238, allocations: 0.508 MB / 0.5911 GB, free: 15.94 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5238, allocations: 0 / 0.5911 GB, free: 15.94 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003093/0.5269, allocations: 1.07 MB / 0.5921 GB, free: 14.87 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.011/0.538, allocations: 4.721 MB / 0.5968 GB, free: 10.11 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003991/0.542, allocations: 2.261 MB / 0.599 GB, free: 7.797 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.542, allocations: 0 / 0.599 GB, free: 7.797 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002175/0.5442, allocations: 1.392 MB / 0.6003 GB, free: 6.355 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/0.5459, allocations: 309.4 kB / 0.6006 GB, free: 6.059 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.242/0.7879, allocations: 13.06 MB / 0.6134 GB, free: 117.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/0.7891, allocations: 1.277 MB / 0.6146 GB, free: 117.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0014/0.7906, allocations: 348.1 kB / 0.615 GB, free: 117.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009537/0.7915, allocations: 0.7753 MB / 0.6157 GB, free: 116.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.352e-06/0.7915, allocations: 0 / 0.6157 GB, free: 116.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08769/0.8792, allocations: 51.37 MB / 0.6659 GB, free: 79.68 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.96/21.83, allocations: 4 kB / 0.6659 GB, free: 79.68 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)