Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Chemical.Examples.TwoConcentrationCompartments.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.0008145/0.0008145, allocations: 77.14 kB / 20.67 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.0008545/0.0008545, 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.9429/0.9429, allocations: 177.1 MB / 204.5 MB, free: 5.52 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.05305/0.05305, allocations: 12.76 MB / 273.8 MB, free: 136 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.TwoConcentrationCompartments,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.TwoConcentrationCompartments") translateModel(Bodylight.Chemical.Examples.TwoConcentrationCompartments,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.TwoConcentrationCompartments") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 347.9 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.203e-05/1.358e-05, allocations: 6.25 kB / 347.9 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.TwoConcentrationCompartments): time 0.004386/0.004399, allocations: 3.748 MB / 351.7 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004584/0.008983, allocations: 3.007 MB / 354.7 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004192/0.009402, allocations: 15.81 kB / 354.7 MB, free: 10.17 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.009673, allocations: 67.3 kB / 354.8 MB, free: 10.11 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.TwoConcentrationCompartments.substance.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.TwoConcentrationCompartments.substance.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.TwoConcentrationCompartments.substance.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.TwoConcentrationCompartments.substance1.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.TwoConcentrationCompartments.substance1.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.TwoConcentrationCompartments.substance1.Utilities.UnitConversions.findUnit'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Hydraulic.mo:1482:17-1484:29:writable] Warning: In relation resistor.Resistance == 0.0, == on Real operands is deprecated in non-function contexts. Notification: Performance of NFTyping.typeBindings: time 0.001363/0.01104, allocations: 0.5003 MB / 355.3 MB, free: 9.605 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.TwoConcentrationCompartments.substance.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.TwoConcentrationCompartments.substance.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.TwoConcentrationCompartments.substance1.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.TwoConcentrationCompartments.substance1.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.01218, allocations: 0.5239 MB / 355.8 MB, free: 9.082 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004218/0.0164, allocations: 5.108 MB / 360.9 MB, free: 3.965 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.01658, allocations: 70.55 kB / 361 MB, free: 3.891 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002489/0.01907, allocations: 1.92 MB / 362.9 MB, free: 1.969 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002364/0.02143, allocations: 1.674 MB / 364.6 MB, free: 300 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005892/0.02202, allocations: 292 kB / 364.8 MB, free: 8 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004654/0.02249, allocations: 288 kB / 365.1 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008028/0.02329, allocations: 0.996 MB / 366.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008676/0.02416, allocations: 0.9241 MB / 367.1 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002758/0.02692, allocations: 2.638 MB / 369.7 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.02692, allocations: 4 kB / 369.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.02692, allocations: 0 / 369.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.698e-05/0.02694, allocations: 0 / 369.7 MB, free: 11.15 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.009587/0.03653, allocations: 3.629 MB / 373.3 MB, free: 7.477 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.03656, allocations: 11.98 kB / 373.3 MB, free: 7.465 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004864/0.03705, allocations: 268.2 kB / 373.6 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000949/0.038, allocations: 0.7938 MB / 374.4 MB, free: 6.375 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009925/0.03899, allocations: 2.824 MB / 377.2 MB, free: 2.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002788/0.03927, allocations: 156.1 kB / 377.4 MB, free: 2.758 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.04103, allocations: 1.404 MB / 378.8 MB, free: 1.324 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.04105, allocations: 4 kB / 378.8 MB, free: 1.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001946/0.04125, allocations: 24 kB / 378.8 MB, free: 1.297 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.04125, allocations: 16 kB / 378.8 MB, free: 1.281 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009933/0.04225, allocations: 0.6985 MB / 379.5 MB, free: 0.582 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009239/0.05149, allocations: 5.406 MB / 384.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.05254, allocations: 0.8219 MB / 385.7 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009076/0.05345, allocations: 0.7403 MB / 386.5 MB, free: 9.516 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002554/0.05371, allocations: 24.94 kB / 386.5 MB, free: 9.488 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001308/0.05501, allocations: 1.294 MB / 387.8 MB, free: 8.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=123): time 2.224e-06/0.05502, allocations: 0 / 387.8 MB, free: 8.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=123): time 0.003617/0.05863, allocations: 2.295 MB / 390.1 MB, free: 5.859 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/0.05866, allocations: 90.11 kB / 390.2 MB, free: 5.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.059, allocations: 0.6202 MB / 390.8 MB, free: 5.113 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001989/0.0592, allocations: 69.7 kB / 390.9 MB, free: 5.039 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.05938, allocations: 401.3 kB / 391.3 MB, free: 4.641 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004177/0.0598, allocations: 0.5851 MB / 391.8 MB, free: 4.051 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006806/0.06048, allocations: 365 kB / 392.2 MB, free: 3.684 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.0606, allocations: 0.5432 MB / 392.7 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009572/0.06156, allocations: 0.681 MB / 393.4 MB, free: 2.445 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.06261, allocations: 0.8762 MB / 394.3 MB, free: 1.547 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00294/0.06555, allocations: 2.232 MB / 396.5 MB, free: 15.28 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.06556, allocations: 0 / 396.5 MB, free: 15.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.002998/0.06855, allocations: 1.996 MB / 398.5 MB, free: 13.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.06858, allocations: 33.7 kB / 398.6 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.06859, allocations: 0 / 398.6 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.0686, allocations: 12.06 kB / 398.6 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03533/0.1039, allocations: 4.13 MB / 402.7 MB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.47e-05/0.104, allocations: 12 kB / 402.7 MB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/0.1058, allocations: 250.8 kB / 403 MB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001755/0.106, allocations: 40 kB / 403 MB, free: 8.785 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: inertia.q_in.q:VARIABLE(flow=true start = advectionStream.SolutionFlow unit = \"m3/s\" fixed = true nominal = 1.6666666666666667e-8 ) \"Volume flow\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (236): * Single equations (assignments): 235 * Array equations: 0 * Algorithm blocks: 1 * 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 0.000554/0.1066, allocations: 244.2 kB / 403.2 MB, free: 8.535 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003797/0.107, allocations: 139.3 kB / 403.4 MB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00272/0.1097, allocations: 1.981 MB / 405.4 MB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.1097, allocations: 7.969 kB / 405.4 MB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.1097, allocations: 0 / 405.4 MB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006447/0.1103, allocations: 418.6 kB / 405.8 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003586/0.1107, allocations: 119.9 kB / 405.9 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001541/0.1122, allocations: 139.9 kB / 406 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003325/0.1126, allocations: 148.7 kB / 406.2 MB, free: 5.586 MB / 330.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004836/0.1174, allocations: 1.304 MB / 407.5 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00362/0.121, allocations: 2.31 MB / 409.8 MB, free: 1.941 MB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007942/0.1218, allocations: 313.5 kB / 410.1 MB, free: 1.637 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001819/0.122, allocations: 358.9 kB / 410.4 MB, free: 1.285 MB / 330.7 MB Notification: Performance of Backend: time 2.5e-07/0.122, allocations: 0 / 410.4 MB, free: 1.285 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.09438/0.2164, allocations: 1.334 MB / 411.8 MB, free: 67.07 MB / 330.7 MB Error: Error parsing unit kcal: Unit not found Error: Error parsing unit kcal/mol: Unit not found Notification: Performance of SimCode: time 0.008002/0.2244, allocations: 6.503 MB / 418.3 MB, free: 63.66 MB / 330.7 MB Notification: Performance of Templates: time 0.05404/0.2784, allocations: 66.43 MB / 484.7 MB, free: 6.922 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Chemical.Examples.TwoConcentrationCompartments.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Chemical.Examples.TwoConcentrationCompartments.pipe ; mkfifo Bodylight_Bodylight.Chemical.Examples.TwoConcentrationCompartments.pipe ; head -c 1048576 < Bodylight_Bodylight.Chemical.Examples.TwoConcentrationCompartments.pipe >> ../files/Bodylight_Bodylight.Chemical.Examples.TwoConcentrationCompartments.sim & ./Bodylight_Bodylight.Chemical.Examples.TwoConcentrationCompartments -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.TwoConcentrationCompartments.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.455927789211273]