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.001066/0.001066, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001064/0.001065, allocations: 195.3 kB / 16.14 MB, free: 6.695 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.24/1.24, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1769/0.1769, allocations: 15.31 MB / 305.3 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 59.91 kB / 369.7 MB, free: 4.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08469/0.08582, allocations: 53.61 MB / 423.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.009155/0.09501, allocations: 9.531 MB / 432.9 MB, free: 5.105 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.167/0.2621, allocations: 24.11 MB / 457 MB, free: 36.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00155/0.2637, allocations: 42.12 kB / 457 MB, free: 36.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.2651, allocations: 466.1 kB / 457.5 MB, free: 36.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004839/0.27, allocations: 1.895 MB / 459.4 MB, free: 35.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006493/0.2765, allocations: 2.634 MB / 462 MB, free: 34.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002584/0.2791, allocations: 2.36 MB / 464.4 MB, free: 33.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001226/0.2803, allocations: 1.212 MB / 465.6 MB, free: 32.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001125/0.2815, allocations: 1.186 MB / 466.8 MB, free: 32.26 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001259/0.2827, allocations: 1.315 MB / 468.1 MB, free: 31.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002529/0.283, allocations: 142.8 kB / 468.2 MB, free: 31.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007342/0.2903, allocations: 2.594 MB / 470.8 MB, free: 31.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004563/0.2908, allocations: 463.2 kB / 471.3 MB, free: 30.86 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009864/0.2918, allocations: 1.013 MB / 472.3 MB, free: 30.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009523/0.3013, allocations: 4.754 MB / 477.1 MB, free: 28.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3014, allocations: 5.438 kB / 477.1 MB, free: 28.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3014, allocations: 0 / 477.1 MB, free: 28.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.262e-05/0.3014, allocations: 0 / 477.1 MB, free: 28.32 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.005425/0.3069, allocations: 2.657 MB / 479.7 MB, free: 26.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.3069, allocations: 10.19 kB / 479.7 MB, free: 26.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003303/0.3073, allocations: 249.1 kB / 480 MB, free: 26.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001828/0.3091, allocations: 419.5 kB / 480.4 MB, free: 26.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001415/0.3105, allocations: 0.9187 MB / 481.3 MB, free: 25.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.3107, allocations: 192.7 kB / 481.5 MB, free: 25.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002632/0.3109, allocations: 186.4 kB / 481.7 MB, free: 25.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003186/0.3141, allocations: 2.084 MB / 483.7 MB, free: 24.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.117e-05/0.3142, allocations: 5.375 kB / 483.8 MB, free: 24.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001607/0.3143, allocations: 69.75 kB / 483.8 MB, free: 24.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.439e-05/0.3144, allocations: 42.47 kB / 483.9 MB, free: 24.87 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003778/0.3182, allocations: 2.61 MB / 486.5 MB, free: 24.11 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.009119/0.3273, allocations: 6.655 MB / 493.1 MB, free: 20.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004141/0.3314, allocations: 3.133 MB / 496.3 MB, free: 18.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.3327, allocations: 0.9176 MB / 497.2 MB, free: 18.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008748/0.3415, allocations: 8.164 MB / 0.4935 GB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.3415, allocations: 54.59 kB / 0.4936 GB, free: 11.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 2.685e-06/0.3415, allocations: 0 / 0.4936 GB, free: 11.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.02829/0.3698, allocations: 6.989 MB / 0.5004 GB, free: 5.695 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.945e-05/0.3699, allocations: 95.11 kB / 0.5005 GB, free: 5.586 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006829/0.3706, allocations: 0.7923 MB / 0.5012 GB, free: 4.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001014/0.3707, allocations: 49.7 kB / 0.5013 GB, free: 4.715 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.3709, allocations: 0.7366 MB / 0.502 GB, free: 3.965 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002928/0.3712, allocations: 0.6123 MB / 0.5026 GB, free: 3.344 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003941/0.3716, allocations: 359.3 kB / 0.5029 GB, free: 2.984 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 2.998e-05/0.3717, allocations: 305.1 kB / 0.5032 GB, free: 2.684 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000882/0.3726, allocations: 0.617 MB / 0.5038 GB, free: 2.062 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.3736, allocations: 1.137 MB / 0.505 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002311/0.3759, allocations: 1.921 MB / 0.5068 GB, free: 14.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3759, allocations: 4 kB / 0.5068 GB, free: 14.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.00712/0.3831, allocations: 2.467 MB / 0.5092 GB, free: 12.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.3831, allocations: 12 kB / 0.5093 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/0.3831, allocations: 12 kB / 0.5093 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003905/0.3871, allocations: 479.2 kB / 0.5097 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/0.3894, allocations: 0.5266 MB / 0.5102 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009654/0.399, allocations: 6.931 MB / 0.517 GB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.4008, allocations: 103.9 kB / 0.5171 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.401, allocations: 104 kB / 0.5172 GB, free: 3.379 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.0007158/0.4017, allocations: 369.1 kB / 0.5176 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000312/0.402, allocations: 134.3 kB / 0.5177 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007725/0.4098, allocations: 2.438 MB / 0.5201 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.123e-05/0.4098, allocations: 20.14 kB / 0.5201 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.4098, allocations: 3.938 kB / 0.5201 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.547e-05/0.4099, allocations: 19.94 kB / 0.5201 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01208/0.4219, allocations: 4.079 MB / 0.5241 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.422, allocations: 4 kB / 0.5241 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002449/0.4244, allocations: 387.5 kB / 0.5245 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006046/0.4305, allocations: 454.9 kB / 0.5249 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002927/0.4308, allocations: 55.92 kB / 0.5249 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01392/0.4448, allocations: 6.771 MB / 0.5316 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4448, allocations: 0 / 0.5316 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008595/0.4534, allocations: 3.139 MB / 0.5346 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003941/0.4538, allocations: 195.3 kB / 0.5348 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003018/0.4541, allocations: 39.88 kB / 0.5349 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.4553, allocations: 67.88 kB / 0.5349 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003147/0.4556, allocations: 141.8 kB / 0.5351 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.4558, allocations: 71.97 kB / 0.5351 GB, free: 356 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006577/0.4564, allocations: 0.504 MB / 0.5356 GB, free: 15.83 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4564, allocations: 3.938 kB / 0.5356 GB, free: 15.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004428/0.4609, allocations: 1.054 MB / 0.5366 GB, free: 14.77 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.01478/0.4757, allocations: 4.722 MB / 0.5413 GB, free: 10.01 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004097/0.4798, allocations: 2.257 MB / 0.5435 GB, free: 7.703 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.4798, allocations: 4 kB / 0.5435 GB, free: 7.699 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001943/0.4818, allocations: 1.389 MB / 0.5448 GB, free: 6.266 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.4834, allocations: 279.6 kB / 0.5451 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0266/0.51, allocations: 14.6 MB / 0.5593 GB, free: 6.453 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007967/0.5108, allocations: 1.273 MB / 0.5606 GB, free: 5.152 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001564/0.5124, allocations: 347.3 kB / 0.5609 GB, free: 4.809 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009965/0.5134, allocations: 0.7711 MB / 0.5617 GB, free: 4.043 MB / 430.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5134, allocations: 0 / 0.5617 GB, free: 4.043 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2147/0.7281, allocations: 48.58 MB / 0.6091 GB, free: 130.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.7283, allocations: 221.6 kB / 0.6093 GB, free: 130.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.1/3.829, allocations: 0 / 0.6093 GB, free: 130.5 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)