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.0009636/0.0009636, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009861/0.0009861, allocations: 191.3 kB / 16.25 MB, free: 6.629 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.202/1.202, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1743/0.1743, allocations: 15.31 MB / 305.4 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 63.89 kB / 369.9 MB, free: 4.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.09205, allocations: 53.61 MB / 423.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.008541/0.1006, allocations: 9.519 MB / 433.1 MB, free: 5.012 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1829/0.2835, allocations: 23.87 MB / 456.9 MB, free: 36.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001145/0.2847, allocations: 38.03 kB / 457 MB, free: 36.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.2858, allocations: 461.3 kB / 457.4 MB, free: 36.17 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004261/0.2901, allocations: 1.944 MB / 459.4 MB, free: 35.17 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005861/0.296, allocations: 2.694 MB / 462.1 MB, free: 34.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001955/0.298, allocations: 2.429 MB / 464.5 MB, free: 33.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001027/0.299, allocations: 1.401 MB / 465.9 MB, free: 32.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009049/0.2999, allocations: 1.276 MB / 467.2 MB, free: 32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.301, allocations: 1.376 MB / 468.5 MB, free: 31.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002092/0.3012, allocations: 213.3 kB / 468.8 MB, free: 31.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006069/0.3073, allocations: 2.722 MB / 471.5 MB, free: 30.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000362/0.3076, allocations: 0.5214 MB / 472 MB, free: 30.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008151/0.3085, allocations: 1.088 MB / 473.1 MB, free: 29.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008174/0.3166, allocations: 4.853 MB / 477.9 MB, free: 27.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.3167, allocations: 3.141 kB / 477.9 MB, free: 27.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3167, allocations: 3.938 kB / 477.9 MB, free: 27.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.135e-05/0.3168, allocations: 1.375 kB / 477.9 MB, free: 27.77 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.006388/0.3232, allocations: 2.649 MB / 480.6 MB, free: 26.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3232, allocations: 9.922 kB / 480.6 MB, free: 26.24 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004622/0.3237, allocations: 248.4 kB / 480.8 MB, free: 26.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002055/0.3258, allocations: 419.4 kB / 481.3 MB, free: 25.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.3274, allocations: 0.9266 MB / 482.2 MB, free: 25.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.3276, allocations: 189.1 kB / 482.4 MB, free: 25.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002947/0.3279, allocations: 182.5 kB / 482.5 MB, free: 25.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003186/0.3311, allocations: 2.092 MB / 484.6 MB, free: 24.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/0.3311, allocations: 1.219 kB / 484.6 MB, free: 24.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001607/0.3313, allocations: 70.94 kB / 484.7 MB, free: 24.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.83e-05/0.3313, allocations: 42.45 kB / 484.8 MB, free: 24.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003687/0.335, allocations: 2.606 MB / 487.4 MB, free: 23.56 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.009299/0.3443, allocations: 6.655 MB / 494 MB, free: 19.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004116/0.3485, allocations: 3.131 MB / 497.1 MB, free: 18.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/0.3497, allocations: 0.9189 MB / 498.1 MB, free: 17.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008701/0.3584, allocations: 8.161 MB / 0.4944 GB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.3584, allocations: 58.09 kB / 0.4944 GB, free: 11.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 3.396e-06/0.3584, allocations: 0 / 0.4944 GB, free: 11.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.02832/0.3868, allocations: 6.996 MB / 0.5012 GB, free: 4.887 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.3868, allocations: 99.09 kB / 0.5013 GB, free: 4.773 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007307/0.3876, allocations: 0.7845 MB / 0.5021 GB, free: 3.965 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001961/0.3878, allocations: 53.7 kB / 0.5022 GB, free: 3.906 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002505/0.388, allocations: 0.7444 MB / 0.5029 GB, free: 3.148 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003237/0.3884, allocations: 0.6006 MB / 0.5035 GB, free: 2.539 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004064/0.3888, allocations: 363.3 kB / 0.5038 GB, free: 2.176 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.067e-05/0.3888, allocations: 305.1 kB / 0.5041 GB, free: 1.875 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008457/0.3897, allocations: 0.6131 MB / 0.5047 GB, free: 1.258 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/0.3907, allocations: 1.133 MB / 0.5058 GB, free: 15.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/0.3931, allocations: 1.921 MB / 0.5077 GB, free: 13.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3931, allocations: 4 kB / 0.5077 GB, free: 13.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007258/0.4004, allocations: 2.478 MB / 0.5101 GB, free: 11.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.4005, allocations: 8 kB / 0.5101 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.4005, allocations: 16 kB / 0.5101 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003942/0.4044, allocations: 475.7 kB / 0.5106 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002285/0.4067, allocations: 0.5227 MB / 0.5111 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.417, allocations: 7.685 MB / 0.5186 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.4188, allocations: 95.97 kB / 0.5187 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002154/0.419, allocations: 107.9 kB / 0.5188 GB, free: 1.809 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.0007073/0.4198, allocations: 373.1 kB / 0.5192 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003608/0.4201, allocations: 134.3 kB / 0.5193 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007791/0.4279, allocations: 2.437 MB / 0.5217 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.879e-05/0.428, allocations: 19.98 kB / 0.5217 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.428, allocations: 4 kB / 0.5217 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-05/0.428, allocations: 7.969 kB / 0.5217 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009619/0.4376, allocations: 4.084 MB / 0.5257 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/0.4377, allocations: 0 / 0.5257 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002015/0.4397, allocations: 391.5 kB / 0.5261 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003977/0.4437, allocations: 454.9 kB / 0.5265 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001646/0.4439, allocations: 55.97 kB / 0.5265 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009112/0.453, allocations: 7.53 MB / 0.5339 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.453, allocations: 0 / 0.5339 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008345/0.4614, allocations: 3.132 MB / 0.537 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004224/0.4618, allocations: 191.3 kB / 0.5371 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002967/0.4621, allocations: 32 kB / 0.5372 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.4632, allocations: 71.81 kB / 0.5372 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003067/0.4635, allocations: 141.8 kB / 0.5374 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/0.4636, allocations: 71.91 kB / 0.5374 GB, free: 14.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005721/0.4642, allocations: 0.504 MB / 0.5379 GB, free: 13.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4642, allocations: 0 / 0.5379 GB, free: 13.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003007/0.4672, allocations: 1.058 MB / 0.539 GB, free: 12.44 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.01061/0.4779, allocations: 4.737 MB / 0.5436 GB, free: 7.664 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004672/0.4826, allocations: 2.366 MB / 0.5459 GB, free: 5.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.4826, allocations: 0 / 0.5459 GB, free: 5.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002021/0.4846, allocations: 1.396 MB / 0.5473 GB, free: 3.809 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00159/0.4862, allocations: 300.8 kB / 0.5476 GB, free: 3.527 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02741/0.5136, allocations: 14.58 MB / 0.5618 GB, free: 3.996 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007673/0.5145, allocations: 1.284 MB / 0.563 GB, free: 2.684 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001523/0.516, allocations: 351.3 kB / 0.5634 GB, free: 2.336 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009947/0.517, allocations: 0.7741 MB / 0.5641 GB, free: 1.57 MB / 430.1 MB Notification: Performance of SimCode: time 8.02e-07/0.517, allocations: 0 / 0.5641 GB, free: 1.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2115/0.7285, allocations: 49.87 MB / 0.6128 GB, free: 136.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001424/0.7286, allocations: 221.2 kB / 0.613 GB, free: 136.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.228/3.957, allocations: 4 kB / 0.6131 GB, free: 136.2 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 & /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)