Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Chemical.Examples.SimpleReaction2.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.001234/0.001234, allocations: 77.86 kB / 20.67 MB, free: 3.832 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.00229/0.00229, 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.9422/0.9422, allocations: 177.1 MB / 204.5 MB, free: 5.512 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.05898/0.05898, allocations: 12.76 MB / 273.8 MB, free: 128 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.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.SimpleReaction2") translateModel(Bodylight.Chemical.Examples.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.SimpleReaction2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 4 kB / 347.9 MB, free: 2.039 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.177e-05/1.394e-05, allocations: 2.312 kB / 347.9 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction2): time 0.002795/0.002809, allocations: 2.901 MB / 350.8 MB, free: 15.12 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003274/0.006083, allocations: 3.509 MB / 354.3 MB, free: 11.6 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.006195, allocations: 15.81 kB / 354.3 MB, free: 11.58 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.006334, allocations: 43.56 kB / 354.4 MB, free: 11.54 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.SimpleReaction2.A.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.SimpleReaction2.A.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.SimpleReaction2.A.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.SimpleReaction2.B.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.SimpleReaction2.B.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.SimpleReaction2.B.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.SimpleReaction2.C.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.SimpleReaction2.C.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.SimpleReaction2.C.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.0008228/0.007157, allocations: 0.5246 MB / 354.9 MB, free: 11.01 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.SimpleReaction2.A.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.SimpleReaction2.A.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.SimpleReaction2.B.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.SimpleReaction2.B.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.SimpleReaction2.C.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.SimpleReaction2.C.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.0006258/0.007782, allocations: 0.5606 MB / 355.5 MB, free: 10.45 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002887/0.008071, allocations: 378.1 kB / 355.8 MB, free: 10.08 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.7e-05/0.008168, allocations: 32.92 kB / 355.9 MB, free: 10.05 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.008303, allocations: 183.5 kB / 356.1 MB, free: 9.871 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001785/0.008482, allocations: 131.6 kB / 356.2 MB, free: 9.742 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.008506, allocations: 16 kB / 356.2 MB, free: 9.727 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.89e-05/0.008554, allocations: 24 kB / 356.2 MB, free: 9.703 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.227e-05/0.008607, allocations: 55.75 kB / 356.3 MB, free: 9.648 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.938e-05/0.008676, allocations: 91.7 kB / 356.4 MB, free: 9.559 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002203/0.008896, allocations: 255 kB / 356.6 MB, free: 9.309 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.423e-06/0.008898, allocations: 0 / 356.6 MB, free: 9.309 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.008898, allocations: 4 kB / 356.6 MB, free: 9.305 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.008902, allocations: 3.938 kB / 356.6 MB, free: 9.301 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.000518/0.00942, allocations: 0.6163 MB / 357.2 MB, free: 8.648 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.00945, allocations: 11.98 kB / 357.3 MB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.009561, allocations: 44.75 kB / 357.3 MB, free: 8.594 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002601/0.009821, allocations: 291.1 kB / 357.6 MB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.009836, allocations: 20.66 kB / 357.6 MB, free: 8.262 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.388e-05/0.009859, allocations: 20.36 kB / 357.6 MB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003345/0.01019, allocations: 92.44 kB / 357.7 MB, free: 8.148 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.01021, allocations: 7.922 kB / 357.7 MB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.01022, allocations: 4 kB / 357.7 MB, free: 8.137 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.01022, allocations: 4 kB / 357.7 MB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.481e-05/0.01029, allocations: 56.33 kB / 357.8 MB, free: 8.078 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005463/0.01084, allocations: 499.7 kB / 358.3 MB, free: 7.562 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.386e-05/0.01092, allocations: 75.03 kB / 358.3 MB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.133e-05/0.01095, allocations: 27.7 kB / 358.4 MB, free: 7.445 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.995e-06/0.01096, allocations: 4 kB / 358.4 MB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.01098, allocations: 45.33 kB / 358.4 MB, free: 7.387 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 9.72e-07/0.01098, allocations: 3.938 kB / 358.4 MB, free: 7.383 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001625/0.01114, allocations: 125.2 kB / 358.5 MB, free: 7.258 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.695e-05/0.01116, allocations: 55.41 kB / 358.6 MB, free: 7.191 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.01132, allocations: 330.2 kB / 358.9 MB, free: 6.852 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.01133, allocations: 25.7 kB / 358.9 MB, free: 6.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.662e-05/0.01142, allocations: 227.1 kB / 359.2 MB, free: 6.594 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.819e-05/0.01145, allocations: 55.52 kB / 359.2 MB, free: 6.539 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.949e-05/0.0115, allocations: 59.52 kB / 359.3 MB, free: 6.469 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.0116, allocations: 0.5079 MB / 359.8 MB, free: 5.949 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.754e-05/0.01163, allocations: 20.44 kB / 359.8 MB, free: 5.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.793e-05/0.0117, allocations: 111.2 kB / 359.9 MB, free: 5.789 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.0118, allocations: 129.4 kB / 360 MB, free: 5.629 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.0118, allocations: 3.938 kB / 360 MB, free: 5.625 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0001557/0.01196, allocations: 172.5 kB / 360.2 MB, free: 5.453 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.01197, allocations: 7.984 kB / 360.2 MB, free: 5.445 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.01198, allocations: 8.219 kB / 360.2 MB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.01199, allocations: 4 kB / 360.2 MB, free: 5.434 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.0121, allocations: 43.92 kB / 360.3 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.0121, allocations: 4 kB / 360.3 MB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.195e-05/0.01218, allocations: 23.84 kB / 360.3 MB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.01218, allocations: 4 kB / 360.3 MB, free: 5.359 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.924e-05/0.01225, allocations: 168.5 kB / 360.5 MB, free: 5.184 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.542e-05/0.01229, allocations: 39.73 kB / 360.5 MB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.568e-05/0.01232, allocations: 30.69 kB / 360.5 MB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.01233, allocations: 3.984 kB / 360.5 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.01233, allocations: 4 kB / 360.5 MB, free: 5.105 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.72e-05/0.01238, allocations: 43.67 kB / 360.6 MB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.0124, allocations: 4 kB / 360.6 MB, free: 5.059 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.933e-05/0.01246, allocations: 0 / 360.6 MB, free: 5.059 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.01247, allocations: 7.984 kB / 360.6 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001769/0.01265, allocations: 224.8 kB / 360.8 MB, free: 4.824 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001954/0.01284, allocations: 406.7 kB / 361.2 MB, free: 4.406 MB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.636e-05/0.01288, allocations: 39.53 kB / 361.3 MB, free: 4.367 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.404e-05/0.01297, allocations: 214.9 kB / 361.5 MB, free: 4.156 MB / 330.7 MB Notification: Performance of Backend: time 3.4e-07/0.01297, allocations: 4 kB / 361.5 MB, free: 4.152 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002861/0.01326, allocations: 157.2 kB / 361.6 MB, free: 3.988 MB / 330.7 MB Error: Error parsing unit kcal: 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.001225/0.01449, allocations: 1.282 MB / 362.9 MB, free: 2.648 MB / 330.7 MB Notification: Performance of Templates: time 0.00503/0.01952, allocations: 3.506 MB / 366.4 MB, free: 15.2 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Chemical.Examples.SimpleReaction2.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Chemical.Examples.SimpleReaction2.pipe ; mkfifo Bodylight_Bodylight.Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Bodylight_Bodylight.Chemical.Examples.SimpleReaction2.pipe >> ../files/Bodylight_Bodylight.Chemical.Examples.SimpleReaction2.sim & ./Bodylight_Bodylight.Chemical.Examples.SimpleReaction2 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.SimpleReaction2.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.573159252293408]