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.001106/0.001106, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 195 kB / 16.53 MB, free: 6.664 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.134/1.134, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.153/0.153, allocations: 15.32 MB / 305.7 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001082/0.001082, allocations: 67.89 kB / 370.4 MB, free: 3.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07648/0.07758, allocations: 53.61 MB / 424 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.007692/0.08528, allocations: 8.391 MB / 432.4 MB, free: 5.801 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1472/0.2325, allocations: 24.15 MB / 456.6 MB, free: 36.71 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007591/0.2333, allocations: 20.81 kB / 456.6 MB, free: 36.71 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009627/0.2343, allocations: 0.5124 MB / 457.1 MB, free: 36.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003535/0.2379, allocations: 2.14 MB / 459.3 MB, free: 35.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004559/0.2424, allocations: 3.012 MB / 462.3 MB, free: 33.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001383/0.2438, allocations: 2.423 MB / 464.7 MB, free: 33.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008908/0.2447, allocations: 1.402 MB / 466.1 MB, free: 32.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006738/0.2454, allocations: 1.202 MB / 467.3 MB, free: 32.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009955/0.2464, allocations: 1.35 MB / 468.6 MB, free: 31.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002454/0.2467, allocations: 212.5 kB / 468.9 MB, free: 31.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004602/0.2513, allocations: 2.653 MB / 471.5 MB, free: 30.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000289/0.2516, allocations: 0.5126 MB / 472 MB, free: 30.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006366/0.2522, allocations: 1.076 MB / 473.1 MB, free: 29.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004903/0.2571, allocations: 5.045 MB / 478.1 MB, free: 27.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2571, allocations: 0 / 478.1 MB, free: 27.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.2572, allocations: 1.406 kB / 478.1 MB, free: 27.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.2572, allocations: 0 / 478.1 MB, free: 27.69 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.003971/0.2612, allocations: 2.653 MB / 480.8 MB, free: 26.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.2612, allocations: 10.06 kB / 480.8 MB, free: 26.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002514/0.2614, allocations: 248.8 kB / 481 MB, free: 26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.2629, allocations: 414.7 kB / 481.5 MB, free: 25.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.264, allocations: 0.9228 MB / 482.4 MB, free: 25.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.2641, allocations: 196.4 kB / 482.6 MB, free: 25.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002353/0.2643, allocations: 182.2 kB / 482.7 MB, free: 25.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002704/0.2671, allocations: 2.085 MB / 484.8 MB, free: 24.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.966e-05/0.2671, allocations: 5.125 kB / 484.8 MB, free: 24.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001517/0.2673, allocations: 70.09 kB / 484.9 MB, free: 24.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.736e-05/0.2673, allocations: 42.31 kB / 484.9 MB, free: 24.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003385/0.2707, allocations: 2.611 MB / 487.6 MB, free: 23.48 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.007975/0.2787, allocations: 6.68 MB / 494.2 MB, free: 19.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003818/0.2825, allocations: 3.129 MB / 497.4 MB, free: 18.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.2836, allocations: 0.918 MB / 498.3 MB, free: 17.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007398/0.291, allocations: 8.152 MB / 0.4946 GB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.845e-05/0.291, allocations: 51.59 kB / 0.4946 GB, free: 11.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 2.635e-06/0.291, allocations: 0 / 0.4946 GB, free: 11.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.02311/0.3141, allocations: 6.996 MB / 0.5014 GB, free: 4.781 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.787e-05/0.3142, allocations: 99.11 kB / 0.5015 GB, free: 4.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005759/0.3148, allocations: 0.7883 MB / 0.5023 GB, free: 3.855 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.753e-05/0.3148, allocations: 53.7 kB / 0.5024 GB, free: 3.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000233/0.3151, allocations: 0.7289 MB / 0.5031 GB, free: 3.055 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002568/0.3153, allocations: 0.6161 MB / 0.5037 GB, free: 2.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003624/0.3157, allocations: 359.4 kB / 0.504 GB, free: 2.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 2.765e-05/0.3157, allocations: 301.1 kB / 0.5043 GB, free: 1.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008014/0.3166, allocations: 0.617 MB / 0.5049 GB, free: 1.152 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/0.3176, allocations: 1.129 MB / 0.506 GB, free: 15.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00235/0.3199, allocations: 1.925 MB / 0.5079 GB, free: 13.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.3199, allocations: 4 kB / 0.5079 GB, free: 13.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.006284/0.3262, allocations: 2.475 MB / 0.5103 GB, free: 11.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3262, allocations: 8 kB / 0.5103 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.3263, allocations: 16 kB / 0.5103 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003323/0.3296, allocations: 479.2 kB / 0.5108 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/0.3316, allocations: 0.5227 MB / 0.5113 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009105/0.3407, allocations: 7.672 MB / 0.5188 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009144/0.3417, allocations: 63.94 kB / 0.5189 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001404/0.3418, allocations: 99.97 kB / 0.519 GB, free: 1.754 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.0004858/0.3423, allocations: 381.1 kB / 0.5193 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000247/0.3426, allocations: 134.3 kB / 0.5194 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0067/0.3493, allocations: 2.431 MB / 0.5218 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.3493, allocations: 24.08 kB / 0.5218 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3493, allocations: 3.984 kB / 0.5218 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-05/0.3493, allocations: 15.95 kB / 0.5219 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008095/0.3574, allocations: 4.087 MB / 0.5259 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.3575, allocations: 2.625 kB / 0.5259 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001769/0.3592, allocations: 395.5 kB / 0.5262 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003282/0.3625, allocations: 454.9 kB / 0.5267 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.3626, allocations: 55.92 kB / 0.5267 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008368/0.371, allocations: 7.518 MB / 0.5341 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.371, allocations: 0 / 0.5341 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006987/0.378, allocations: 3.135 MB / 0.5371 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.3782, allocations: 191.4 kB / 0.5373 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001698/0.3784, allocations: 32 kB / 0.5373 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00074/0.3791, allocations: 39.94 kB / 0.5374 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.3794, allocations: 137.8 kB / 0.5375 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.3795, allocations: 71.91 kB / 0.5376 GB, free: 13.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004986/0.38, allocations: 0.504 MB / 0.5381 GB, free: 13.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.38, allocations: 4 kB / 0.5381 GB, free: 13.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002506/0.3825, allocations: 1.058 MB / 0.5391 GB, free: 12.4 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.008743/0.3912, allocations: 4.731 MB / 0.5437 GB, free: 7.625 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003905/0.3952, allocations: 2.366 MB / 0.546 GB, free: 5.215 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3952, allocations: 0 / 0.546 GB, free: 5.215 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00172/0.3969, allocations: 1.4 MB / 0.5474 GB, free: 3.766 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.3981, allocations: 306.2 kB / 0.5477 GB, free: 3.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02162/0.4198, allocations: 13.83 MB / 0.5612 GB, free: 4.707 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007294/0.4205, allocations: 1.284 MB / 0.5625 GB, free: 3.395 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001277/0.4218, allocations: 349.2 kB / 0.5628 GB, free: 3.051 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008831/0.4227, allocations: 0.7751 MB / 0.5635 GB, free: 2.281 MB / 430.1 MB Notification: Performance of SimCode: time 2e-07/0.4227, allocations: 0 / 0.5635 GB, free: 2.281 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1972/0.6198, allocations: 50.05 MB / 0.6124 GB, free: 135.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.72, allocations: 7.812 kB / 0.6124 GB, free: 135.6 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)