Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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) 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) Running command: translateModel(Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization") translateModel(Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 183.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 222.9 MB / 239.7 MB, free: 10.98 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.001034/0.001034, allocations: 101.5 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.335/0.335, allocations: 36.67 MB / 376.7 MB, free: 41.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.91 kB / 446.4 MB, free: 11.81 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1203, allocations: 58.91 MB / 0.4935 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization): time 0.2322/0.3526, allocations: 9.526 MB / 0.5028 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0273/0.3799, allocations: 23.93 MB / 0.5262 GB, free: 19.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002625/0.3826, allocations: 34.91 kB / 0.5262 GB, free: 19.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001771/0.3844, allocations: 470.6 kB / 0.5266 GB, free: 19.71 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007081/0.3915, allocations: 1.823 MB / 0.5284 GB, free: 18.62 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008771/0.4004, allocations: 2.65 MB / 0.531 GB, free: 17.06 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003391/0.4038, allocations: 2.383 MB / 0.5333 GB, free: 15.95 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002072/0.4059, allocations: 1.21 MB / 0.5345 GB, free: 15.41 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002714/0.4086, allocations: 1.195 MB / 0.5357 GB, free: 15.04 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003017/0.4117, allocations: 1.313 MB / 0.537 GB, free: 14.55 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009234/0.4126, allocations: 144.5 kB / 0.5371 GB, free: 14.54 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01094/0.4236, allocations: 2.514 MB / 0.5396 GB, free: 13.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009404/0.4245, allocations: 457.5 kB / 0.54 GB, free: 13.66 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001983/0.4266, allocations: 1.016 MB / 0.541 GB, free: 13.11 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01444/0.441, allocations: 4.838 MB / 0.5457 GB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.08e-05/0.4411, allocations: 0 / 0.5457 GB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4411, allocations: 0 / 0.5457 GB, free: 11.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001653/0.4413, allocations: 0 / 0.5457 GB, free: 11.13 MB / 378.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.007913/0.4492, allocations: 2.638 MB / 0.5483 GB, free: 9.613 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.441e-05/0.4493, allocations: 8 kB / 0.5483 GB, free: 9.613 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002149/0.4514, allocations: 406.4 kB / 0.5487 GB, free: 9.496 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001839/0.4533, allocations: 0.9381 MB / 0.5496 GB, free: 8.902 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001982/0.4535, allocations: 198.7 kB / 0.5498 GB, free: 8.773 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003295/0.4538, allocations: 183.3 kB / 0.55 GB, free: 8.711 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003872/0.4577, allocations: 2.09 MB / 0.552 GB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.422e-05/0.4578, allocations: 1.406 kB / 0.552 GB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001595/0.4579, allocations: 73.66 kB / 0.5521 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.97e-05/0.458, allocations: 43.34 kB / 0.5521 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004317/0.4623, allocations: 2.619 MB / 0.5547 GB, free: 7.086 MB / 378.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.01239/0.4747, allocations: 6.693 MB / 0.5612 GB, free: 2.727 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004688/0.4795, allocations: 3.138 MB / 0.5643 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001492/0.481, allocations: 0.9211 MB / 0.5652 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01319/0.4942, allocations: 8.174 MB / 0.5732 GB, free: 7.473 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.498e-05/0.4943, allocations: 51.81 kB / 0.5732 GB, free: 7.414 MB / 394.7 MB Notification: Performance of pre-optimization done (n=144): time 4.038e-06/0.4943, allocations: 3.938 kB / 0.5732 GB, free: 7.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=180): time 0.03055/0.5248, allocations: 7.032 MB / 0.5801 GB, free: 240 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.525, allocations: 103 kB / 0.5802 GB, free: 116 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.5261, allocations: 0.7845 MB / 0.5809 GB, free: 15.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002676/0.5263, allocations: 53.7 kB / 0.581 GB, free: 15.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000477/0.5268, allocations: 0.7405 MB / 0.5817 GB, free: 14.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006747/0.5275, allocations: 0.6045 MB / 0.5823 GB, free: 13.88 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006908/0.5282, allocations: 367.3 kB / 0.5827 GB, free: 13.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.674e-05/0.5283, allocations: 301.1 kB / 0.5829 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.5296, allocations: 0.6286 MB / 0.5836 GB, free: 12.58 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001534/0.5311, allocations: 1.133 MB / 0.5847 GB, free: 11.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002853/0.534, allocations: 1.933 MB / 0.5865 GB, free: 9.078 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/0.534, allocations: 4 kB / 0.5865 GB, free: 9.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007441/0.5415, allocations: 2.479 MB / 0.589 GB, free: 6.574 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/0.5415, allocations: 15.98 kB / 0.589 GB, free: 6.559 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.501e-05/0.5416, allocations: 23.5 kB / 0.589 GB, free: 6.539 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003764/0.5453, allocations: 479.3 kB / 0.5895 GB, free: 6.059 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002722/0.5481, allocations: 0.5617 MB / 0.59 GB, free: 5.496 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01/0.5581, allocations: 6.927 MB / 0.5968 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/0.5597, allocations: 99.92 kB / 0.5969 GB, free: 13.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003004/0.56, allocations: 104 kB / 0.597 GB, free: 13.84 MB / 426.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.0009079/0.561, allocations: 390.1 kB / 0.5973 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000455/0.5614, allocations: 137.8 kB / 0.5975 GB, free: 13.31 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007887/0.5693, allocations: 2.448 MB / 0.5999 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.123e-05/0.5694, allocations: 16 kB / 0.5999 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.567e-05/0.5694, allocations: 4 kB / 0.5999 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.704e-05/0.5694, allocations: 7.969 kB / 0.5999 GB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.58, allocations: 4.095 MB / 0.6039 GB, free: 6.664 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/0.5801, allocations: 4.891 kB / 0.6039 GB, free: 6.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002445/0.5825, allocations: 435.4 kB / 0.6043 GB, free: 6.234 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003627/0.5862, allocations: 462.9 kB / 0.6048 GB, free: 5.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003132/0.5865, allocations: 55.97 kB / 0.6048 GB, free: 5.715 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009395/0.5959, allocations: 6.777 MB / 0.6114 GB, free: 14.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.596, allocations: 4.031 kB / 0.6114 GB, free: 14.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04109/0.6371, allocations: 14.88 MB / 0.626 GB, free: 15.06 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004285/0.6375, allocations: 191.6 kB / 0.6261 GB, free: 14.85 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000398/0.638, allocations: 32.06 kB / 0.6262 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.6392, allocations: 75.81 kB / 0.6262 GB, free: 14.75 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004533/0.6396, allocations: 145.8 kB / 0.6264 GB, free: 14.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001829/0.6398, allocations: 67.97 kB / 0.6265 GB, free: 14.54 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006898/0.6405, allocations: 0.5079 MB / 0.6269 GB, free: 14.02 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6405, allocations: 0 / 0.6269 GB, free: 14.02 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004838/0.6454, allocations: 1.253 MB / 0.6282 GB, free: 12.76 MB / 458.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.003268/0.6487, allocations: 1.132 MB / 0.6293 GB, free: 11.63 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004688/0.6534, allocations: 2.261 MB / 0.6315 GB, free: 9.324 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.6534, allocations: 0 / 0.6315 GB, free: 9.324 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002404/0.6558, allocations: 1.4 MB / 0.6329 GB, free: 7.875 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002124/0.658, allocations: 288.6 kB / 0.6331 GB, free: 7.594 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008623/0.6666, allocations: 5.105 MB / 0.6381 GB, free: 2.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.6679, allocations: 1.333 MB / 0.6394 GB, free: 1.043 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002119/0.6701, allocations: 380 kB / 0.6398 GB, free: 0.6836 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006946/0.6708, allocations: 243.3 kB / 0.64 GB, free: 456 kB / 458.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6708, allocations: 4 kB / 0.64 GB, free: 452 kB / 458.7 MB Notification: Performance of Templates: time 0.06392/0.7347, allocations: 41.84 MB / 0.6809 GB, free: 6.797 MB / 0.4948 GB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.WaterSelfIonization.pipe 2>&1)