Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater.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.0008387/0.0008387, allocations: 77.86 kB / 20.66 MB, free: 3.836 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.0009129/0.0009129, allocations: 165 kB / 24.06 MB, free: 452 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.8886/0.8886, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.76 MB / 273.8 MB, free: 116 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.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater") translateModel(Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 347.9 MB, free: 2.023 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.111e-05/1.213e-05, allocations: 4.703 kB / 347.9 MB, free: 2.02 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.003333/0.003345, allocations: 4.326 MB / 352.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003957/0.007302, allocations: 4.542 MB / 356.8 MB, free: 9.113 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.007482, allocations: 35.69 kB / 356.8 MB, free: 9.078 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.007662, allocations: 98.95 kB / 356.9 MB, free: 8.98 MB / 330.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.CarbonDioxideInWater.HCO3.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.CarbonDioxideInWater.HCO3.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater.HCO3.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.CarbonDioxideInWater.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.CarbonDioxideInWater.H3O.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater.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.CarbonDioxideInWater.CO2_liquid.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.CarbonDioxideInWater.CO2_liquid.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater.CO2_liquid.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.CarbonDioxideInWater.CO3.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.CarbonDioxideInWater.CO3.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater.CO3.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.001037/0.008699, allocations: 0.7536 MB / 357.7 MB, free: 8.223 MB / 330.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.CarbonDioxideInWater.HCO3.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.CarbonDioxideInWater.HCO3.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.CarbonDioxideInWater.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.CarbonDioxideInWater.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.CarbonDioxideInWater.CO2_liquid.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.CarbonDioxideInWater.CO2_liquid.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.CarbonDioxideInWater.CO3.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.CarbonDioxideInWater.CO3.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.0008525/0.009552, allocations: 0.7632 MB / 358.5 MB, free: 7.457 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004891/0.01004, allocations: 0.7579 MB / 359.2 MB, free: 6.695 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.01019, allocations: 101.3 kB / 359.3 MB, free: 6.598 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002452/0.01043, allocations: 363.1 kB / 359.7 MB, free: 6.242 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.01074, allocations: 283.1 kB / 359.9 MB, free: 5.965 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.291e-05/0.01078, allocations: 36 kB / 360 MB, free: 5.93 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.288e-05/0.01085, allocations: 40 kB / 360 MB, free: 5.891 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.442e-05/0.01095, allocations: 131.4 kB / 360.2 MB, free: 5.762 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.01107, allocations: 183.5 kB / 360.3 MB, free: 5.582 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003524/0.01142, allocations: 498 kB / 360.8 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.01142, allocations: 4 kB / 360.8 MB, free: 5.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.01142, allocations: 0 / 360.8 MB, free: 5.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.01143, allocations: 0 / 360.8 MB, free: 5.09 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0008317/0.01226, allocations: 0.9229 MB / 361.7 MB, free: 4.129 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.757e-05/0.01229, allocations: 11.98 kB / 361.8 MB, free: 4.117 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001811/0.01247, allocations: 108.5 kB / 361.9 MB, free: 4.012 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.01287, allocations: 443.1 kB / 362.3 MB, free: 3.551 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.01289, allocations: 25.03 kB / 362.3 MB, free: 3.527 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.01292, allocations: 32.38 kB / 362.4 MB, free: 3.496 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.01316, allocations: 255.6 kB / 362.6 MB, free: 3.227 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.01317, allocations: 3.938 kB / 362.6 MB, free: 3.223 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.0132, allocations: 12 kB / 362.6 MB, free: 3.211 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.0132, allocations: 8 kB / 362.6 MB, free: 3.203 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001269/0.01333, allocations: 100.4 kB / 362.7 MB, free: 3.105 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.01453, allocations: 1.184 MB / 363.9 MB, free: 1.875 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.01467, allocations: 129.8 kB / 364 MB, free: 1.723 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.355e-05/0.01473, allocations: 51.41 kB / 364.1 MB, free: 1.664 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.01474, allocations: 4 kB / 364.1 MB, free: 1.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.01476, allocations: 45.64 kB / 364.1 MB, free: 1.605 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.01476, allocations: 0 / 364.1 MB, free: 1.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=35): time 0.002538/0.0173, allocations: 0.9572 MB / 365.1 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.47e-05/0.01733, allocations: 81.11 kB / 365.2 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002852/0.01761, allocations: 0.5138 MB / 365.7 MB, free: 0 / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.01764, allocations: 33.7 kB / 365.7 MB, free: 15.96 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.01778, allocations: 343.1 kB / 366 MB, free: 15.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.689e-05/0.01785, allocations: 138.8 kB / 366.2 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.01795, allocations: 103.8 kB / 366.3 MB, free: 15.37 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.01807, allocations: 0.5429 MB / 366.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.253e-05/0.01815, allocations: 52.95 kB / 366.9 MB, free: 14.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.01832, allocations: 274 kB / 367.1 MB, free: 14.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.01859, allocations: 356.9 kB / 367.5 MB, free: 13.97 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.0186, allocations: 4 kB / 367.5 MB, free: 13.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001473/0.02007, allocations: 0.6786 MB / 368.2 MB, free: 13.26 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.02008, allocations: 4 kB / 368.2 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.02009, allocations: 8 kB / 368.2 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002001/0.02209, allocations: 0.5721 MB / 368.8 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.02223, allocations: 79.84 kB / 368.8 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004499/0.02673, allocations: 7.792 MB / 376.6 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001928/0.02692, allocations: 27.92 kB / 376.7 MB, free: 4.312 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.02695, allocations: 20 kB / 376.7 MB, free: 4.293 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (46): * Single equations (assignments): 42 * 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): 3 systems {(2,4,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.02706, allocations: 184.5 kB / 376.9 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.903e-05/0.02714, allocations: 75.56 kB / 376.9 MB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.735e-05/0.02721, allocations: 73.42 kB / 377 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.02721, allocations: 3.984 kB / 377 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.02721, allocations: 4 kB / 377 MB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.02732, allocations: 91.5 kB / 377.1 MB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.902e-05/0.02736, allocations: 8 kB / 377.1 MB, free: 3.848 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.02752, allocations: 8 kB / 377.1 MB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.833e-05/0.02759, allocations: 43.84 kB / 377.2 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009236/0.02851, allocations: 0.6391 MB / 377.8 MB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004376/0.02895, allocations: 0.711 MB / 378.5 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.312e-05/0.02903, allocations: 55.62 kB / 378.6 MB, free: 2.344 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000159/0.02919, allocations: 318.7 kB / 378.9 MB, free: 2.035 MB / 346.7 MB Notification: Performance of Backend: time 3e-07/0.02919, allocations: 0 / 378.9 MB, free: 2.035 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.03051, allocations: 1.11 MB / 380 MB, free: 0.8438 MB / 346.7 MB Error: Error parsing unit kcal/min: Unit not found Error: Error parsing unit kcal: Unit not found Error: Error parsing unit meq: Unit not found Error: Error parsing unit kcal/mol: Unit not found Error: Error parsing unit %: Parse error Notification: Performance of SimCode: time 0.001871/0.03238, allocations: 1.953 MB / 381.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of Templates: time 0.01276/0.04514, allocations: 13.2 MB / 395.1 MB, free: 1.766 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; mkfifo Bodylight_Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; head -c 1048576 < Bodylight_Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe >> ../files/Bodylight_Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater.sim & ./Bodylight_Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.740841945167631]