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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Chemical.Examples.AcidBase.WaterSelfIonization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.WaterSelfIonization") translateModel(Chemical.Examples.AcidBase.WaterSelfIonization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.WaterSelfIonization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.0817/0.0817, allocations: 15.29 MB / 31.09 MB, free: 3.113 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 194 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 264 MB, free: 4.836 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009093/0.0009094, allocations: 95.2 kB / 318.4 MB, free: 3.441 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000977/0.000977, allocations: 57.78 kB / 382.7 MB, free: 48.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08385/0.08484, allocations: 53.61 MB / 436.3 MB, free: 1.043 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.008935/0.09381, allocations: 9.512 MB / 445.8 MB, free: 7.488 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02415/0.118, allocations: 23.91 MB / 469.8 MB, free: 15.48 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001498/0.1195, allocations: 39.69 kB / 469.8 MB, free: 15.45 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.1208, allocations: 461.3 kB / 470.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005381/0.1262, allocations: 1.832 MB / 472.1 MB, free: 13.15 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007552/0.1338, allocations: 2.635 MB / 474.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003189/0.137, allocations: 2.379 MB / 477.1 MB, free: 8.109 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001501/0.1385, allocations: 1.214 MB / 478.3 MB, free: 6.848 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001414/0.1399, allocations: 1.188 MB / 479.5 MB, free: 5.656 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001678/0.1416, allocations: 1.328 MB / 480.8 MB, free: 4.324 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002985/0.1419, allocations: 140 kB / 481 MB, free: 4.188 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007178/0.1491, allocations: 2.519 MB / 483.5 MB, free: 1.664 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006775/0.1498, allocations: 454.4 kB / 483.9 MB, free: 1.219 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001275/0.1511, allocations: 1.011 MB / 484.9 MB, free: 208 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009492/0.1606, allocations: 4.694 MB / 489.6 MB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1607, allocations: 0 / 489.6 MB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1607, allocations: 0 / 489.6 MB, free: 11.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001077/0.1608, allocations: 0 / 489.6 MB, free: 11.49 MB / 362.7 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.006303/0.1671, allocations: 2.64 MB / 492.3 MB, free: 8.797 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1672, allocations: 12.88 kB / 492.3 MB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001728/0.1689, allocations: 413.9 kB / 492.7 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.1703, allocations: 0.9241 MB / 493.6 MB, free: 7.414 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/0.1705, allocations: 191.5 kB / 493.8 MB, free: 7.215 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002671/0.1708, allocations: 180.3 kB / 494 MB, free: 7.039 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003226/0.174, allocations: 2.089 MB / 496.1 MB, free: 4.918 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.313e-05/0.1741, allocations: 7.938 kB / 496.1 MB, free: 4.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001678/0.1743, allocations: 76 kB / 496.1 MB, free: 4.836 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.881e-05/0.1743, allocations: 40 kB / 496.2 MB, free: 4.797 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003854/0.1782, allocations: 2.604 MB / 498.8 MB, free: 2.191 MB / 362.7 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.01035/0.1885, allocations: 6.634 MB / 0.4936 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004462/0.193, allocations: 3.134 MB / 0.4966 GB, free: 8.012 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.1943, allocations: 0.9212 MB / 0.4975 GB, free: 7.086 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1842/0.3786, allocations: 8.152 MB / 0.5055 GB, free: 70.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.3786, allocations: 52.59 kB / 0.5055 GB, free: 70.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=144): time 3.617e-06/0.3786, allocations: 0 / 0.5055 GB, free: 70.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=180): time 0.02643/0.4051, allocations: 6.996 MB / 0.5124 GB, free: 69.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.4051, allocations: 99.8 kB / 0.5125 GB, free: 69.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008791/0.406, allocations: 0.7845 MB / 0.5132 GB, free: 69.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.848e-05/0.4061, allocations: 56.14 kB / 0.5133 GB, free: 69.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003426/0.4065, allocations: 0.7311 MB / 0.514 GB, free: 68.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003502/0.4068, allocations: 0.6106 MB / 0.5146 GB, free: 68.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004716/0.4073, allocations: 359.8 kB / 0.5149 GB, free: 68.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.383e-05/0.4073, allocations: 309.3 kB / 0.5152 GB, free: 68.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009981/0.4083, allocations: 0.6203 MB / 0.5158 GB, free: 68.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.4096, allocations: 1.132 MB / 0.517 GB, free: 67.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002322/0.4119, allocations: 1.916 MB / 0.5188 GB, free: 66.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.337e-06/0.4119, allocations: 3.906 kB / 0.5188 GB, free: 66.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.006823/0.4187, allocations: 2.469 MB / 0.5212 GB, free: 65.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.4188, allocations: 10.94 kB / 0.5212 GB, free: 65.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.4188, allocations: 16.02 kB / 0.5213 GB, free: 65.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003622/0.4224, allocations: 475.2 kB / 0.5217 GB, free: 65.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002157/0.4246, allocations: 0.5256 MB / 0.5222 GB, free: 65.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007961/0.4326, allocations: 6.931 MB / 0.529 GB, free: 59.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.4339, allocations: 107.9 kB / 0.5291 GB, free: 59.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002039/0.4341, allocations: 104.4 kB / 0.5292 GB, free: 59.25 MB / 378.7 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.0006518/0.4348, allocations: 364.5 kB / 0.5295 GB, free: 58.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002558/0.435, allocations: 134.5 kB / 0.5297 GB, free: 58.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006748/0.4418, allocations: 2.441 MB / 0.5321 GB, free: 57.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.4418, allocations: 19.75 kB / 0.5321 GB, free: 57.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.4419, allocations: 10.56 kB / 0.5321 GB, free: 57.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/0.4419, allocations: 7.875 kB / 0.5321 GB, free: 57.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008117/0.45, allocations: 4.076 MB / 0.5361 GB, free: 55.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.45, allocations: 3.5 kB / 0.5361 GB, free: 55.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001805/0.4518, allocations: 390.8 kB / 0.5365 GB, free: 55.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003373/0.4552, allocations: 451.7 kB / 0.5369 GB, free: 55.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001553/0.4554, allocations: 55.44 kB / 0.5369 GB, free: 55.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007441/0.4628, allocations: 6.776 MB / 0.5436 GB, free: 49.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4629, allocations: 0 / 0.5436 GB, free: 49.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03384/0.4967, allocations: 14.87 MB / 0.5581 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002645/0.497, allocations: 195.4 kB / 0.5583 GB, free: 34.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.4973, allocations: 32 kB / 0.5583 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.4983, allocations: 71.88 kB / 0.5584 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003698/0.4987, allocations: 141.7 kB / 0.5585 GB, free: 34.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.4989, allocations: 71.97 kB / 0.5586 GB, free: 34.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005479/0.4994, allocations: 0.504 MB / 0.5591 GB, free: 33.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4994, allocations: 0 / 0.5591 GB, free: 33.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003811/0.5033, allocations: 1.25 MB / 0.5603 GB, free: 32.67 MB / 378.7 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.001701/0.505, allocations: 1.131 MB / 0.5614 GB, free: 31.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003047/0.508, allocations: 2.245 MB / 0.5636 GB, free: 29.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.5081, allocations: 4 kB / 0.5636 GB, free: 29.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.5097, allocations: 1.396 MB / 0.5649 GB, free: 28.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/0.5112, allocations: 280 kB / 0.5652 GB, free: 27.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005149/0.5163, allocations: 5.119 MB / 0.5702 GB, free: 22.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005304/0.5169, allocations: 1.333 MB / 0.5715 GB, free: 21.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00159/0.5185, allocations: 381.2 kB / 0.5719 GB, free: 20.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005263/0.519, allocations: 252.3 kB / 0.5721 GB, free: 20.62 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.519, allocations: 7.875 kB / 0.5721 GB, free: 20.61 MB / 378.7 MB Notification: Performance of Templates: time 0.04766/0.5667, allocations: 41.29 MB / 0.6124 GB, free: 11.52 MB / 410.7 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.makefile (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 & ./Chemical_Chemical.Examples.AcidBase.WaterSelfIonization -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe 2>&1)