Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LookupFunctions") translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LookupFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 109.6 kB / 16.41 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 192.3 kB / 17.35 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1603/0.1603, allocations: 31.12 MB / 322.3 MB, free: 76 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 71.89 kB / 447.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1115, allocations: 56.36 MB / 0.4919 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008404/0.12, allocations: 6.99 MB / 0.4987 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00385/0.1238, allocations: 2.165 MB / 0.5009 GB, free: 128 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008997/0.1248, allocations: 23.88 kB / 0.5009 GB, free: 104 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2585/0.3833, allocations: 159.2 kB / 0.501 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001214/0.3846, allocations: 146 kB / 0.5012 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001158/0.3858, allocations: 337.6 kB / 0.5015 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007295/0.3865, allocations: 0.7265 MB / 0.5022 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005184/0.3871, allocations: 362.2 kB / 0.5025 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002616/0.3873, allocations: 240.6 kB / 0.5028 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.3875, allocations: 247.3 kB / 0.503 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.248e-05/0.3876, allocations: 44.56 kB / 0.5031 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001945/0.3878, allocations: 86.55 kB / 0.5031 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.388, allocations: 149.4 kB / 0.5033 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.3882, allocations: 292.7 kB / 0.5036 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006879/0.3889, allocations: 0.6382 MB / 0.5042 GB, free: 5.246 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3889, allocations: 1.031 kB / 0.5042 GB, free: 5.246 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3889, allocations: 0 / 0.5042 GB, free: 5.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.3889, allocations: 0 / 0.5042 GB, free: 5.246 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001359/0.3903, allocations: 0.9971 MB / 0.5052 GB, free: 4.602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.3903, allocations: 12.06 kB / 0.5052 GB, free: 4.602 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002757/0.3906, allocations: 94.59 kB / 0.5053 GB, free: 4.559 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007159/0.3913, allocations: 0.4941 MB / 0.5057 GB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.3914, allocations: 27.75 kB / 0.5058 GB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.13e-05/0.3914, allocations: 34.38 kB / 0.5058 GB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008097/0.3923, allocations: 474.3 kB / 0.5063 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.3923, allocations: 3.625 kB / 0.5063 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.003e-05/0.3923, allocations: 16.16 kB / 0.5063 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.3923, allocations: 10.02 kB / 0.5063 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000722/0.3931, allocations: 252.5 kB / 0.5065 GB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.3949, allocations: 1.123 MB / 0.5076 GB, free: 3.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007055/0.3956, allocations: 175.2 kB / 0.5078 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002563/0.3959, allocations: 80.88 kB / 0.5079 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-05/0.3959, allocations: 6.188 kB / 0.5079 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.3959, allocations: 38.23 kB / 0.5079 GB, free: 3.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.396, allocations: 3.188 kB / 0.5079 GB, free: 3.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009257/0.3969, allocations: 296.6 kB / 0.5082 GB, free: 3.488 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.958e-05/0.397, allocations: 443 kB / 0.5086 GB, free: 2.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007147/0.3977, allocations: 0.6339 MB / 0.5092 GB, free: 2.832 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.3977, allocations: 32.95 kB / 0.5093 GB, free: 2.801 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.3979, allocations: 315.5 kB / 0.5096 GB, free: 2.652 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.398, allocations: 38.03 kB / 0.5096 GB, free: 2.629 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.505e-05/0.3981, allocations: 52.48 kB / 0.5096 GB, free: 2.609 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.881e-05/0.3982, allocations: 364.3 kB / 0.51 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002494/0.3984, allocations: 69.84 kB / 0.5101 GB, free: 2.289 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003057/0.3987, allocations: 197.7 kB / 0.5103 GB, free: 2.145 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004722/0.3992, allocations: 162.2 kB / 0.5104 GB, free: 2.117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3992, allocations: 0.5625 kB / 0.5104 GB, free: 2.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006244/0.3998, allocations: 239.9 kB / 0.5106 GB, free: 2.062 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3999, allocations: 11.66 kB / 0.5106 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3999, allocations: 4.594 kB / 0.5107 GB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3999, allocations: 1.5 kB / 0.5107 GB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002447/0.4002, allocations: 42.69 kB / 0.5107 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.4002, allocations: 4.828 kB / 0.5107 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.4005, allocations: 40.91 kB / 0.5107 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.4005, allocations: 4.953 kB / 0.5107 GB, free: 2.055 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (15): * Single equations (assignments): 15 * 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 0.0001804/0.4007, allocations: 186.2 kB / 0.5109 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.4008, allocations: 61.33 kB / 0.511 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004783/0.4013, allocations: 195.4 kB / 0.5112 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.4013, allocations: 2.797 kB / 0.5112 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.4013, allocations: 1.984 kB / 0.5112 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.4015, allocations: 170.9 kB / 0.5113 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.487e-05/0.4016, allocations: 6.828 kB / 0.5113 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003646/0.402, allocations: 46.77 kB / 0.5114 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.402, allocations: 12.09 kB / 0.5114 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006749/0.4027, allocations: 345.4 kB / 0.5117 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006178/0.4033, allocations: 492.3 kB / 0.5122 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002418/0.4036, allocations: 84.69 kB / 0.5123 GB, free: 1.215 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005136/0.4041, allocations: 469.8 kB / 0.5127 GB, free: 1.117 MB / 382.1 MB Notification: Performance of Backend: time 4.71e-07/0.4041, allocations: 0 / 0.5127 GB, free: 1.117 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.4057, allocations: 0.498 MB / 0.5132 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of SimCode: time 0.001538/0.4072, allocations: 1.382 MB / 0.5146 GB, free: 60 kB / 382.1 MB Notification: Performance of Templates: time 0.01647/0.4237, allocations: 8.307 MB / 0.5227 GB, free: 14.2 MB / 398.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.makefile (rm -f BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.sim & ./BusinessSimulation_BusinessSimulation.Examples.LookupFunctions -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1)