Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Chemical.Examples.SimpleReaction.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.001005/0.001005, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.0009992/0.0009992, allocations: 169 kB / 23.02 MB, free: 1.547 MB / 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 1.042/1.042, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.06822/0.06822, allocations: 12.75 MB / 272.7 MB, free: 280 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.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.SimpleReaction") translateModel(Bodylight.Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.SimpleReaction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0 / 346.7 MB, free: 1.258 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.134e-05/3.372e-05, allocations: 2.312 kB / 346.7 MB, free: 1.254 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.003849/0.003883, allocations: 2.703 MB / 349.4 MB, free: 14.54 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00384/0.007723, allocations: 2.82 MB / 352.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002528/0.007975, allocations: 11.88 kB / 352.2 MB, free: 11.69 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.00818, allocations: 35.66 kB / 352.2 MB, free: 11.66 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.SimpleReaction.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.SimpleReaction.A.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.SimpleReaction.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.SimpleReaction.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.SimpleReaction.B.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.SimpleReaction.B.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.00139/0.00957, allocations: 405.8 kB / 352.6 MB, free: 11.26 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.SimpleReaction.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.SimpleReaction.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.SimpleReaction.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.SimpleReaction.B.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.01062, allocations: 434.6 kB / 353.1 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004285/0.01105, allocations: 282.6 kB / 353.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.01119, allocations: 28.52 kB / 353.4 MB, free: 10.52 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.01139, allocations: 143.6 kB / 353.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.01162, allocations: 103.7 kB / 353.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.052e-05/0.01165, allocations: 12 kB / 353.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.022e-05/0.01172, allocations: 19.94 kB / 353.6 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.583e-05/0.0118, allocations: 47.78 kB / 353.7 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.279e-05/0.01188, allocations: 67.83 kB / 353.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003194/0.0122, allocations: 183.3 kB / 353.9 MB, free: 9.957 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.0122, allocations: 4 kB / 353.9 MB, free: 9.953 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.01221, allocations: 0 / 353.9 MB, free: 9.953 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.01221, allocations: 0 / 353.9 MB, free: 9.953 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007484/0.01296, allocations: 0.5384 MB / 354.5 MB, free: 9.379 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.01301, allocations: 11.98 kB / 354.5 MB, free: 9.367 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.01321, allocations: 40.8 kB / 354.5 MB, free: 9.328 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005517/0.01376, allocations: 235.7 kB / 354.8 MB, free: 9.07 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.01377, allocations: 12.38 kB / 354.8 MB, free: 9.059 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.487e-05/0.01381, allocations: 12.38 kB / 354.8 MB, free: 9.047 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001644/0.01397, allocations: 86.16 kB / 354.9 MB, free: 8.957 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.01399, allocations: 7.922 kB / 354.9 MB, free: 8.949 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.01401, allocations: 0 / 354.9 MB, free: 8.949 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.01402, allocations: 7.938 kB / 354.9 MB, free: 8.941 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.273e-05/0.0141, allocations: 44.56 kB / 354.9 MB, free: 8.898 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007667/0.01487, allocations: 467.2 kB / 355.4 MB, free: 8.406 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/0.01503, allocations: 70.95 kB / 355.4 MB, free: 8.324 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.687e-05/0.01508, allocations: 27.67 kB / 355.5 MB, free: 8.293 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.01509, allocations: 4 kB / 355.5 MB, free: 8.289 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.01512, allocations: 37.39 kB / 355.5 MB, free: 8.242 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 2.374e-06/0.01512, allocations: 0 / 355.5 MB, free: 8.242 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002839/0.0154, allocations: 109.5 kB / 355.6 MB, free: 8.129 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.01545, allocations: 51.41 kB / 355.7 MB, free: 8.066 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.01567, allocations: 284.3 kB / 356 MB, free: 7.77 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.01569, allocations: 33.7 kB / 356 MB, free: 7.73 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.0158, allocations: 199 kB / 356.2 MB, free: 7.531 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.07e-05/0.01583, allocations: 35.69 kB / 356.2 MB, free: 7.496 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-05/0.0159, allocations: 47.36 kB / 356.3 MB, free: 7.441 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.01607, allocations: 0.5001 MB / 356.8 MB, free: 6.93 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.817e-05/0.01612, allocations: 19.98 kB / 356.8 MB, free: 6.91 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.025e-05/0.0162, allocations: 79.59 kB / 356.9 MB, free: 6.809 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.01634, allocations: 106 kB / 357 MB, free: 6.68 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.01634, allocations: 0 / 357 MB, free: 6.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001929/0.01653, allocations: 148.6 kB / 357.1 MB, free: 6.531 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.01655, allocations: 6.812 kB / 357.1 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.01656, allocations: 4 kB / 357.1 MB, free: 6.523 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/0.01658, allocations: 3.938 kB / 357.1 MB, free: 6.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.01672, allocations: 35.92 kB / 357.2 MB, free: 6.484 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.01673, allocations: 7.984 kB / 357.2 MB, free: 6.477 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.738e-05/0.01681, allocations: 20.05 kB / 357.2 MB, free: 6.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.01682, allocations: 8 kB / 357.2 MB, free: 6.449 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (20): * Single equations (assignments): 20 * 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 9.895e-05/0.01692, allocations: 160.5 kB / 357.3 MB, free: 6.281 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.271e-05/0.01695, allocations: 27.86 kB / 357.4 MB, free: 6.254 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.539e-05/0.01699, allocations: 25.77 kB / 357.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.017, allocations: 3.938 kB / 357.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.017, allocations: 4 kB / 357.4 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.01701, allocations: 0 / 357.4 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.01718, allocations: 184.5 kB / 357.6 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.01718, allocations: 0 / 357.6 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.584e-05/0.01727, allocations: 23.98 kB / 357.6 MB, free: 5.984 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.01727, allocations: 0 / 357.6 MB, free: 5.984 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.443e-05/0.0173, allocations: 11.98 kB / 357.6 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.0173, allocations: 0 / 357.6 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.0173, allocations: 3.938 kB / 357.6 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002459/0.01755, allocations: 255.7 kB / 357.9 MB, free: 5.699 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.145e-05/0.0176, allocations: 31.78 kB / 357.9 MB, free: 5.668 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.01762, allocations: 7.938 kB / 357.9 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.923e-05/0.01768, allocations: 4 kB / 357.9 MB, free: 5.656 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.401e-05/0.01771, allocations: 7.922 kB / 357.9 MB, free: 5.648 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-06/0.01771, allocations: 8.031 kB / 357.9 MB, free: 5.641 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001123/0.01782, allocations: 197.1 kB / 358.1 MB, free: 5.449 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.01783, allocations: 0 / 358.1 MB, free: 5.449 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005274/0.01835, allocations: 44 kB / 358.2 MB, free: 5.406 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.state,B.state) * 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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.0001017/0.01845, allocations: 95.23 kB / 358.3 MB, free: 5.301 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001723/0.01863, allocations: 71.53 kB / 358.3 MB, free: 5.227 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.01863, allocations: 4 kB / 358.3 MB, free: 5.223 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.053e-05/0.01866, allocations: 27.98 kB / 358.4 MB, free: 5.191 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.01897, allocations: 40.47 kB / 358.4 MB, free: 5.152 MB / 282.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: created linear, non-linear and system jacobian parts: time 0.001298/0.02027, allocations: 429.5 kB / 358.8 MB, free: 4.707 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.179e-05/0.02033, allocations: 76.33 kB / 358.9 MB, free: 4.613 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.702e-05/0.02042, allocations: 29.62 kB / 358.9 MB, free: 4.586 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.812e-05/0.02048, allocations: 20.5 kB / 358.9 MB, free: 4.566 MB / 282.7 MB Notification: Performance of SimCode: time 1.263e-06/0.02048, allocations: 0 / 358.9 MB, free: 4.566 MB / 282.7 MB Notification: Performance of Templates: time 0.005024/0.0255, allocations: 2.285 MB / 361.2 MB, free: 2.324 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Chemical.Examples.SimpleReaction.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe ; mkfifo Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe ; head -c 1048576 < Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe >> ../files/Bodylight_Bodylight.Chemical.Examples.SimpleReaction.sim & ./Bodylight_Bodylight.Chemical.Examples.SimpleReaction -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0141500090248883]