Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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-main/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/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_dev_BusinessSimulation.Examples.LookupFunctions") translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 105.7 kB / 16.41 MB, free: 6.469 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.001547/0.001547, allocations: 187 kB / 17.34 MB, free: 5.715 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.435/1.435, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1648/0.1648, allocations: 31.17 MB / 322.4 MB, free: 176 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 55.91 kB / 447.4 MB, free: 1.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1233, allocations: 56.37 MB / 0.492 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.009059/0.1324, allocations: 6.975 MB / 0.4988 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003939/0.1364, allocations: 2.173 MB / 0.5009 GB, free: 184 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008527/0.1372, allocations: 19.88 kB / 0.5009 GB, free: 164 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2382/0.3755, allocations: 165.5 kB / 0.5011 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008545/0.3764, allocations: 146.9 kB / 0.5012 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009171/0.3773, allocations: 339 kB / 0.5015 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008825/0.3782, allocations: 0.7222 MB / 0.5022 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005501/0.3788, allocations: 358.9 kB / 0.5026 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003051/0.3791, allocations: 242.2 kB / 0.5028 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.3793, allocations: 248.8 kB / 0.503 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.665e-05/0.3794, allocations: 44.28 kB / 0.5031 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002029/0.3796, allocations: 86.27 kB / 0.5032 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.3798, allocations: 151.4 kB / 0.5033 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002023/0.38, allocations: 287.2 kB / 0.5036 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007722/0.3808, allocations: 0.6473 MB / 0.5042 GB, free: 5.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3808, allocations: 0 / 0.5042 GB, free: 5.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3808, allocations: 3.312 kB / 0.5042 GB, free: 5.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.3808, allocations: 0 / 0.5042 GB, free: 5.25 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.001471/0.3823, allocations: 1.025 MB / 0.5052 GB, free: 4.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3823, allocations: 9.688 kB / 0.5052 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002889/0.3826, allocations: 96.48 kB / 0.5053 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007011/0.3833, allocations: 0.5033 MB / 0.5058 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.3834, allocations: 32.09 kB / 0.5058 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.754e-05/0.3834, allocations: 30.62 kB / 0.5059 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007471/0.3842, allocations: 470.5 kB / 0.5063 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.3842, allocations: 0 / 0.5063 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.3843, allocations: 17.97 kB / 0.5063 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.3843, allocations: 9.25 kB / 0.5064 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00069/0.385, allocations: 258.7 kB / 0.5066 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.3868, allocations: 1.117 MB / 0.5077 GB, free: 3.637 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007117/0.3875, allocations: 179.6 kB / 0.5079 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/0.3878, allocations: 86.34 kB / 0.5079 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.976e-05/0.3878, allocations: 5.391 kB / 0.5079 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.3878, allocations: 40.48 kB / 0.508 GB, free: 3.527 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.894e-06/0.3878, allocations: 0 / 0.508 GB, free: 3.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009059/0.3887, allocations: 300 kB / 0.5083 GB, free: 3.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.953e-05/0.3888, allocations: 446.7 kB / 0.5087 GB, free: 2.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000716/0.3896, allocations: 0.6337 MB / 0.5093 GB, free: 2.801 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.3896, allocations: 32.45 kB / 0.5093 GB, free: 2.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002321/0.3898, allocations: 317 kB / 0.5096 GB, free: 2.617 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.379e-05/0.3899, allocations: 39.25 kB / 0.5097 GB, free: 2.594 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.39, allocations: 54.67 kB / 0.5097 GB, free: 2.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.262e-05/0.3901, allocations: 365.4 kB / 0.5101 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.3903, allocations: 68.94 kB / 0.5102 GB, free: 2.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003183/0.3907, allocations: 190.1 kB / 0.5103 GB, free: 2.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004831/0.3912, allocations: 160.3 kB / 0.5105 GB, free: 2.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3912, allocations: 0 / 0.5105 GB, free: 2.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006874/0.3919, allocations: 247.7 kB / 0.5107 GB, free: 2.027 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3919, allocations: 4.656 kB / 0.5107 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.3919, allocations: 1.188 kB / 0.5107 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.3919, allocations: 1.312 kB / 0.5107 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.3922, allocations: 50.53 kB / 0.5108 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.3922, allocations: 3.578 kB / 0.5108 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003753/0.3926, allocations: 51.03 kB / 0.5108 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.3926, allocations: 5.469 kB / 0.5108 GB, free: 2.012 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.0002483/0.3929, allocations: 186.3 kB / 0.511 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.393, allocations: 59.91 kB / 0.5111 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005122/0.3935, allocations: 192.7 kB / 0.5113 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3935, allocations: 2.797 kB / 0.5113 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3935, allocations: 1.062 kB / 0.5113 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3935, allocations: 0.6094 kB / 0.5113 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006861/0.3942, allocations: 483.4 kB / 0.5117 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3942, allocations: 0.5156 kB / 0.5117 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002038/0.3945, allocations: 39.84 kB / 0.5118 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3945, allocations: 1 kB / 0.5118 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.3945, allocations: 2.375 kB / 0.5118 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.3945, allocations: 1.688 kB / 0.5118 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3945, allocations: 4.594 kB / 0.5118 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006188/0.3951, allocations: 405.5 kB / 0.5122 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.3954, allocations: 172.7 kB / 0.5123 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.79e-05/0.3954, allocations: 5.344 kB / 0.5123 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003414/0.3958, allocations: 39.23 kB / 0.5124 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.778e-05/0.3958, allocations: 9.219 kB / 0.5124 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.3959, allocations: 2.781 kB / 0.5124 GB, free: 1.242 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004793/0.3964, allocations: 463 kB / 0.5128 GB, free: 1.148 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3964, allocations: 1.438 kB / 0.5128 GB, free: 1.148 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004405/0.3968, allocations: 110.5 kB / 0.5129 GB, free: 1.121 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (11): * Single equations (assignments): 11 * 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.0008083/0.3976, allocations: 366.6 kB / 0.5133 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006292/0.3983, allocations: 164.6 kB / 0.5134 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3983, allocations: 1.188 kB / 0.5134 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.3985, allocations: 82.84 kB / 0.5135 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007938/0.3993, allocations: 140.5 kB / 0.5136 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.4008, allocations: 0.9197 MB / 0.5145 GB, free: 448 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.4013, allocations: 0.889 MB / 0.5154 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.4014, allocations: 44.88 kB / 0.5155 GB, free: 15.72 MB / 398.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4014, allocations: 0 / 0.5155 GB, free: 15.72 MB / 398.1 MB Notification: Performance of Templates: time 0.01154/0.413, allocations: 6.602 MB / 0.5219 GB, free: 14.38 MB / 398.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1)