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.000899/0.0008986, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0008918/0.0008918, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.335/0.335, allocations: 31.19 MB / 322.3 MB, free: 5.051 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003845/0.0003847, allocations: 8 kB / 390.2 MB, free: 2.453 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3709, allocations: 57.4 MB / 447.6 MB, free: 34.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008822/0.3798, allocations: 10.5 MB / 458.1 MB, free: 26.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006652/0.3865, allocations: 3.009 MB / 461.1 MB, free: 24.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002223/0.3887, allocations: 72.66 kB / 461.2 MB, free: 24.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005936/0.3893, allocations: 151 kB / 461.3 MB, free: 24.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006772/0.39, allocations: 158.1 kB / 461.5 MB, free: 23.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009785/0.391, allocations: 280.4 kB / 461.7 MB, free: 23.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006494/0.3917, allocations: 0.6162 MB / 462.3 MB, free: 23.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004325/0.3921, allocations: 243.6 kB / 462.6 MB, free: 23.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002823/0.3924, allocations: 168.7 kB / 462.8 MB, free: 23.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.3926, allocations: 187.5 kB / 462.9 MB, free: 23.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.214e-05/0.3927, allocations: 13.41 kB / 462.9 MB, free: 23.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002068/0.3929, allocations: 52.88 kB / 463 MB, free: 23.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.393, allocations: 102.7 kB / 463.1 MB, free: 23.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.742e-05/0.3931, allocations: 117.4 kB / 463.2 MB, free: 23.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004409/0.3936, allocations: 443.1 kB / 463.6 MB, free: 22.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3936, allocations: 3.094 kB / 463.6 MB, free: 22.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3936, allocations: 1.531 kB / 463.7 MB, free: 22.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.3936, allocations: 0 / 463.7 MB, free: 22.89 MB / 350.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.001246/0.3949, allocations: 0.9032 MB / 464.6 MB, free: 22.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3949, allocations: 8.281 kB / 464.6 MB, free: 22.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002701/0.3952, allocations: 98.59 kB / 464.7 MB, free: 22.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006566/0.3959, allocations: 461.2 kB / 465.1 MB, free: 21.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.376e-05/0.3959, allocations: 28.25 kB / 465.1 MB, free: 21.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.355e-05/0.396, allocations: 35.03 kB / 465.2 MB, free: 21.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008481/0.3968, allocations: 481.5 kB / 465.6 MB, free: 21.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.3969, allocations: 0 / 465.6 MB, free: 21.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.065e-05/0.3969, allocations: 16.69 kB / 465.7 MB, free: 21.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/0.3969, allocations: 13.27 kB / 465.7 MB, free: 21.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007071/0.3976, allocations: 274.7 kB / 465.9 MB, free: 21.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.3996, allocations: 1.145 MB / 467.1 MB, free: 20.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007262/0.4004, allocations: 190.5 kB / 467.3 MB, free: 20.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/0.4006, allocations: 89.03 kB / 467.4 MB, free: 20.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-05/0.4007, allocations: 2.141 kB / 467.4 MB, free: 20.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.4007, allocations: 46.78 kB / 467.4 MB, free: 20.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.804e-06/0.4007, allocations: 0 / 467.4 MB, free: 20.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009796/0.4017, allocations: 321 kB / 467.7 MB, free: 20.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/0.4018, allocations: 446.9 kB / 468.2 MB, free: 19.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008925/0.4027, allocations: 0.6313 MB / 468.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.4028, allocations: 36.42 kB / 468.8 MB, free: 19.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002147/0.403, allocations: 318.9 kB / 469.1 MB, free: 19.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.263e-05/0.403, allocations: 35.58 kB / 469.2 MB, free: 19.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.31e-05/0.403, allocations: 1.312 kB / 469.2 MB, free: 19.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.4032, allocations: 359.9 kB / 469.5 MB, free: 19.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.4034, allocations: 84.95 kB / 469.6 MB, free: 18.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003393/0.4038, allocations: 201.6 kB / 469.8 MB, free: 18.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002662/0.4041, allocations: 94.7 kB / 469.9 MB, free: 18.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4041, allocations: 0 / 469.9 MB, free: 18.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006433/0.4047, allocations: 261.2 kB / 470.1 MB, free: 18.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.4047, allocations: 6.391 kB / 470.2 MB, free: 18.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.892e-06/0.4048, allocations: 4.031 kB / 470.2 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.4048, allocations: 2 kB / 470.2 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.405, allocations: 51.3 kB / 470.2 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.4051, allocations: 2.219 kB / 470.2 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.4054, allocations: 57.55 kB / 470.3 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.4054, allocations: 9.891 kB / 470.3 MB, free: 18.66 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002356/0.4057, allocations: 181 kB / 470.5 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.4058, allocations: 59.75 kB / 470.5 MB, free: 18.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005094/0.4063, allocations: 199.1 kB / 470.7 MB, free: 18.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.4063, allocations: 1.062 kB / 470.7 MB, free: 18.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.4063, allocations: 1.766 kB / 470.7 MB, free: 18.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4063, allocations: 0.8438 kB / 470.7 MB, free: 18.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007493/0.4071, allocations: 483.3 kB / 471.2 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4071, allocations: 1.062 kB / 471.2 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002159/0.4073, allocations: 41.17 kB / 471.2 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.4074, allocations: 1.125 kB / 471.2 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.4074, allocations: 7.156 kB / 471.2 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/0.4074, allocations: 5.031 kB / 471.2 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.4074, allocations: 4.688 kB / 471.2 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007052/0.4081, allocations: 432.8 kB / 471.7 MB, free: 17.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002783/0.4084, allocations: 169.9 kB / 471.8 MB, free: 17.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.539e-05/0.4085, allocations: 6.906 kB / 471.8 MB, free: 17.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003695/0.4089, allocations: 48.77 kB / 471.9 MB, free: 17.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/0.4089, allocations: 12.77 kB / 471.9 MB, free: 17.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.409, allocations: 3.562 kB / 471.9 MB, free: 17.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007249/0.4097, allocations: 454.6 kB / 472.3 MB, free: 17.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4097, allocations: 0 / 472.3 MB, free: 17.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005356/0.4102, allocations: 107.9 kB / 472.5 MB, free: 17.41 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001007/0.4112, allocations: 365.8 kB / 472.8 MB, free: 17.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006595/0.4119, allocations: 186.4 kB / 473 MB, free: 17.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.4119, allocations: 1.031 kB / 473 MB, free: 17.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.4122, allocations: 92.88 kB / 473.1 MB, free: 17.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009234/0.4132, allocations: 127.2 kB / 473.2 MB, free: 17.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.415, allocations: 1.048 MB / 474.3 MB, free: 16.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.4155, allocations: 0.8824 MB / 475.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003004/0.4158, allocations: 66.02 kB / 475.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.4159, allocations: 43.27 kB / 475.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4159, allocations: 0 / 475.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of Templates: time 0.017/0.4329, allocations: 5.784 MB / 481 MB, free: 14.42 MB / 350.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)