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.0009008/0.0009009, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.005461/0.005461, allocations: 172 kB / 16.26 MB, free: 6.613 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.221/1.221, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1768/0.1768, allocations: 15.27 MB / 306.7 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002664/0.0002663, allocations: 8 kB / 372.2 MB, free: 3.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2247, allocations: 54.61 MB / 426.8 MB, free: 39.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.005659/0.2304, allocations: 9.043 MB / 435.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01664/0.247, allocations: 23.87 MB / 459.7 MB, free: 19.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009822/0.2481, allocations: 34.53 kB / 459.8 MB, free: 19.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009305/0.249, allocations: 459.7 kB / 460.2 MB, free: 18.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003859/0.2529, allocations: 1.895 MB / 462.1 MB, free: 17.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005238/0.2581, allocations: 2.641 MB / 464.8 MB, free: 16.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001661/0.2598, allocations: 2.36 MB / 467.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008634/0.2607, allocations: 1.149 MB / 468.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000914/0.2616, allocations: 1.128 MB / 469.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001158/0.2627, allocations: 1.249 MB / 470.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002062/0.263, allocations: 112.8 kB / 470.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005859/0.2688, allocations: 2.576 MB / 473.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003583/0.2692, allocations: 417.5 kB / 473.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001395/0.2706, allocations: 0.9876 MB / 474.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00764/0.2783, allocations: 4.703 MB / 479.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2783, allocations: 0 / 479.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2783, allocations: 0 / 479.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.623e-05/0.2784, allocations: 0 / 479.4 MB, free: 10.5 MB / 350.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.005937/0.2843, allocations: 2.208 MB / 481.6 MB, free: 9.191 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2844, allocations: 9.062 kB / 481.6 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006113/0.285, allocations: 248.1 kB / 481.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002273/0.2873, allocations: 423.9 kB / 482.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001719/0.289, allocations: 0.9025 MB / 483.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.2892, allocations: 192.8 kB / 483.4 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004757/0.2897, allocations: 182.3 kB / 483.6 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003783/0.2935, allocations: 2.089 MB / 485.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.2935, allocations: 0 / 485.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000176/0.2937, allocations: 74.88 kB / 485.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.679e-05/0.2937, allocations: 43.12 kB / 485.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003972/0.2977, allocations: 2.609 MB / 488.4 MB, free: 6.496 MB / 350.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.008952/0.3067, allocations: 6.587 MB / 495 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003998/0.3107, allocations: 3.13 MB / 498.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001265/0.312, allocations: 0.9173 MB / 499 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01057/0.3226, allocations: 7.987 MB / 0.4951 GB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.648e-05/0.3226, allocations: 55.81 kB / 0.4952 GB, free: 3.973 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 3.647e-06/0.3226, allocations: 0 / 0.4952 GB, free: 3.973 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.03084/0.3535, allocations: 7.074 MB / 0.5021 GB, free: 12.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.3536, allocations: 103.1 kB / 0.5022 GB, free: 12.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008953/0.3545, allocations: 0.7806 MB / 0.5029 GB, free: 11.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001182/0.3546, allocations: 57.7 kB / 0.503 GB, free: 11.76 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004506/0.3551, allocations: 0.7367 MB / 0.5037 GB, free: 11.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004626/0.3555, allocations: 0.6083 MB / 0.5043 GB, free: 10.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000204/0.3557, allocations: 161.6 kB / 0.5045 GB, free: 10.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.269e-05/0.3558, allocations: 305.1 kB / 0.5048 GB, free: 9.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/0.3569, allocations: 0.6131 MB / 0.5054 GB, free: 9.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.3583, allocations: 1.137 MB / 0.5065 GB, free: 7.949 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002586/0.3609, allocations: 1.917 MB / 0.5083 GB, free: 5.812 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.485e-06/0.3609, allocations: 12 kB / 0.5083 GB, free: 5.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007456/0.3683, allocations: 2.491 MB / 0.5108 GB, free: 3.289 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.3684, allocations: 12 kB / 0.5108 GB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/0.3684, allocations: 19.94 kB / 0.5108 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004211/0.3726, allocations: 0.4911 MB / 0.5113 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002242/0.3749, allocations: 0.5188 MB / 0.5118 GB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.3854, allocations: 6.993 MB / 0.5186 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.3867, allocations: 103.9 kB / 0.5187 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001589/0.3869, allocations: 103.9 kB / 0.5188 GB, free: 10.51 MB / 398.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.0006559/0.3875, allocations: 373.1 kB / 0.5192 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002326/0.3878, allocations: 134.3 kB / 0.5193 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008015/0.3958, allocations: 2.46 MB / 0.5217 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.3958, allocations: 16 kB / 0.5217 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3958, allocations: 8 kB / 0.5217 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.301e-05/0.3959, allocations: 12.11 kB / 0.5217 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009426/0.4053, allocations: 4.102 MB / 0.5257 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.4053, allocations: 4 kB / 0.5258 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001904/0.4072, allocations: 387.5 kB / 0.5261 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00407/0.4113, allocations: 486.8 kB / 0.5266 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/0.4114, allocations: 55.97 kB / 0.5266 GB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009114/0.4205, allocations: 6.811 MB / 0.5333 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.4206, allocations: 0 / 0.5333 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00798/0.4285, allocations: 3.158 MB / 0.5364 GB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002763/0.4288, allocations: 195.3 kB / 0.5366 GB, free: 7.641 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/0.429, allocations: 35.94 kB / 0.5366 GB, free: 7.605 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008965/0.4299, allocations: 71.89 kB / 0.5367 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.4302, allocations: 137.8 kB / 0.5368 GB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/0.4303, allocations: 71.97 kB / 0.5369 GB, free: 7.328 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005746/0.4309, allocations: 0.5001 MB / 0.5374 GB, free: 6.816 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4309, allocations: 0 / 0.5374 GB, free: 6.816 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00289/0.4338, allocations: 1.054 MB / 0.5384 GB, free: 5.762 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.0103/0.4441, allocations: 4.754 MB / 0.543 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003402/0.4475, allocations: 2.253 MB / 0.5452 GB, free: 14.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.4475, allocations: 0 / 0.5452 GB, free: 14.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.4494, allocations: 1.392 MB / 0.5466 GB, free: 13.23 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001468/0.4509, allocations: 290.9 kB / 0.5469 GB, free: 12.95 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02655/0.4775, allocations: 14.73 MB / 0.5612 GB, free: 13.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008377/0.4783, allocations: 1.273 MB / 0.5625 GB, free: 11.97 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001573/0.4799, allocations: 351.3 kB / 0.5628 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/0.481, allocations: 0.7725 MB / 0.5636 GB, free: 10.85 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.481, allocations: 0 / 0.5636 GB, free: 10.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6825/1.163, allocations: 48.42 MB / 0.6109 GB, free: 133.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/1.164, allocations: 225.5 kB / 0.6111 GB, free: 133.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.187/4.351, allocations: 0 / 0.6111 GB, free: 133.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)