Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000843/0.000843, allocations: 73.88 kB / 20.66 MB, free: 3.84 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008852/0.0008852, allocations: 165 kB / 24.06 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8861/0.8861, allocations: 177.1 MB / 204.5 MB, free: 5.535 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo): time 0.05317/0.05317, allocations: 12.77 MB / 273.8 MB, free: 144 kB / 250.7 MB " [Timeout remaining time 180] Using package Bodylight with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization") translateModel(Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 347.9 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.184e-05/1.324e-05, allocations: 6.312 kB / 347.9 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization): time 0.002744/0.002757, allocations: 3.346 MB / 351.3 MB, free: 13.61 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003329/0.006086, allocations: 3.622 MB / 354.9 MB, free: 9.977 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.006217, allocations: 19.81 kB / 354.9 MB, free: 9.957 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.006356, allocations: 67.3 kB / 355 MB, free: 9.891 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.H3O.Utilities.UnitConversions.findUnit' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5637:15-5729:17:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.H3O.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.H3O.Utilities.UnitConversions.findUnit'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.OH.Utilities.UnitConversions.findUnit' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5637:15-5729:17:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.OH.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.OH.Utilities.UnitConversions.findUnit'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.H2O.Utilities.UnitConversions.findUnit' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5637:15-5729:17:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.H2O.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.H2O.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.0008372/0.007193, allocations: 0.5517 MB / 355.5 MB, free: 9.336 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.H3O.Utilities.writeReal' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5845:15-5881:24:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.H3O.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.OH.Utilities.writeReal' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5845:15-5881:24:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.OH.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.H2O.Utilities.writeReal' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5845:15-5881:24:writable] Warning: Pure function 'Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.H2O.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.0006912/0.007884, allocations: 0.6035 MB / 356.1 MB, free: 8.73 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003576/0.008242, allocations: 497.6 kB / 356.6 MB, free: 8.242 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.008365, allocations: 65.67 kB / 356.7 MB, free: 8.176 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002056/0.00857, allocations: 231.4 kB / 356.9 MB, free: 7.949 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.008814, allocations: 183.4 kB / 357.1 MB, free: 7.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.035e-05/0.008844, allocations: 24 kB / 357.1 MB, free: 7.746 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.648e-05/0.008901, allocations: 31.98 kB / 357.2 MB, free: 7.715 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.589e-05/0.008967, allocations: 83.67 kB / 357.2 MB, free: 7.633 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.589e-05/0.009053, allocations: 127.6 kB / 357.4 MB, free: 7.508 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002583/0.009311, allocations: 310.7 kB / 357.7 MB, free: 7.203 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.503e-06/0.009313, allocations: 0 / 357.7 MB, free: 7.203 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.2e-07/0.009313, allocations: 0 / 357.7 MB, free: 7.203 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.009317, allocations: 0 / 357.7 MB, free: 7.203 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006982/0.01002, allocations: 0.7135 MB / 358.4 MB, free: 6.449 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.01005, allocations: 11.98 kB / 358.4 MB, free: 6.438 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.01017, allocations: 64.69 kB / 358.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.01046, allocations: 333.4 kB / 358.8 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.01048, allocations: 16.88 kB / 358.8 MB, free: 6.008 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.0105, allocations: 20.38 kB / 358.8 MB, free: 5.988 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.01069, allocations: 197.3 kB / 359 MB, free: 5.773 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.0107, allocations: 3.938 kB / 359 MB, free: 5.77 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.01071, allocations: 16 kB / 359 MB, free: 5.754 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.01072, allocations: 4 kB / 359 MB, free: 5.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.619e-05/0.01081, allocations: 63.38 kB / 359.1 MB, free: 5.688 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.01181, allocations: 0.9908 MB / 360.1 MB, free: 4.637 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000161/0.01197, allocations: 141.2 kB / 360.2 MB, free: 4.461 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.13e-05/0.01201, allocations: 47.03 kB / 360.3 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.01203, allocations: 4 kB / 360.3 MB, free: 4.398 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.01205, allocations: 45.55 kB / 360.3 MB, free: 4.344 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.01205, allocations: 3.938 kB / 360.3 MB, free: 4.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.001573/0.01362, allocations: 0.6013 MB / 360.9 MB, free: 3.723 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.906e-05/0.01365, allocations: 106.8 kB / 361 MB, free: 3.594 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.01386, allocations: 402.3 kB / 361.4 MB, free: 3.184 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.01388, allocations: 29.7 kB / 361.4 MB, free: 3.148 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.01398, allocations: 275.1 kB / 361.7 MB, free: 2.875 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.348e-05/0.01402, allocations: 83.34 kB / 361.8 MB, free: 2.793 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.646e-05/0.0141, allocations: 83.27 kB / 361.9 MB, free: 2.703 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.01421, allocations: 0.5273 MB / 362.4 MB, free: 2.164 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.346e-05/0.01427, allocations: 31.97 kB / 362.4 MB, free: 2.133 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.0144, allocations: 249 kB / 362.7 MB, free: 1.797 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004639/0.01486, allocations: 324.8 kB / 363 MB, free: 1.387 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.01487, allocations: 7.938 kB / 363 MB, free: 1.379 MB / 282.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001023/0.01589, allocations: 488.1 kB / 363.5 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.01591, allocations: 11.94 kB / 363.5 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.01591, allocations: 4 kB / 363.5 MB, free: 0.875 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001263/0.01717, allocations: 362.9 kB / 363.8 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.682e-05/0.01727, allocations: 59.91 kB / 363.9 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/0.0198, allocations: 4.044 MB / 368 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.01993, allocations: 19.89 kB / 368 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.01995, allocations: 19.98 kB / 368 MB, free: 12.14 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (34): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of prepare postOptimizeDAE: time 9.163e-05/0.02004, allocations: 172.5 kB / 368.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.621e-05/0.02011, allocations: 47.77 kB / 368.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.62e-05/0.02016, allocations: 51.53 kB / 368.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.02016, allocations: 4.078 kB / 368.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.02016, allocations: 3.984 kB / 368.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.024e-05/0.02023, allocations: 59.62 kB / 368.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.02026, allocations: 8 kB / 368.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.02039, allocations: 15.92 kB / 368.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.826e-05/0.02044, allocations: 27.88 kB / 368.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000501/0.02094, allocations: 0.599 MB / 369 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003382/0.02128, allocations: 0.7201 MB / 369.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.819e-05/0.02134, allocations: 39.66 kB / 369.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001086/0.02145, allocations: 251 kB / 370 MB, free: 10.1 MB / 298.7 MB Notification: Performance of Backend: time 3.21e-07/0.02145, allocations: 4 kB / 370 MB, free: 10.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.02252, allocations: 0.6208 MB / 370.6 MB, free: 9.434 MB / 298.7 MB Error: Error parsing unit kcal: Unit not found Error: Error parsing unit meq: Unit not found Error: Error parsing unit kcal/min: Unit not found Error: Error parsing unit kcal/mol: Unit not found Error: Error parsing unit %: Parse error Notification: Performance of SimCode: time 0.001455/0.02397, allocations: 1.563 MB / 372.2 MB, free: 7.828 MB / 298.7 MB Notification: Performance of Templates: time 0.008409/0.03238, allocations: 7.718 MB / 379.9 MB, free: 184 kB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; mkfifo Bodylight_Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; head -c 1048576 < Bodylight_Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.pipe >> ../files/Bodylight_Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.sim & ./Bodylight_Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.AcidBase.WaterSelfIonization.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.540246117860079]