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.001458/0.001458, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001096/0.001096, allocations: 192.1 kB / 16.25 MB, free: 6.633 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.344/1.344, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.289/0.289, allocations: 31.17 MB / 321.2 MB, free: 4.633 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.89 kB / 388.4 MB, free: 2.996 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2545, allocations: 56.34 MB / 444.8 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008308/0.2629, allocations: 11.79 MB / 456.6 MB, free: 25.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004702/0.2676, allocations: 3.056 MB / 459.6 MB, free: 23.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001534/0.2691, allocations: 72.25 kB / 459.7 MB, free: 23.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004203/0.2696, allocations: 139 kB / 459.8 MB, free: 23.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003823/0.27, allocations: 110.2 kB / 459.9 MB, free: 23.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006052/0.2706, allocations: 282.8 kB / 460.2 MB, free: 23.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005356/0.2712, allocations: 0.7262 MB / 460.9 MB, free: 23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004424/0.2716, allocations: 352.1 kB / 461.3 MB, free: 22.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002148/0.2718, allocations: 232.5 kB / 461.5 MB, free: 22.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.272, allocations: 248.9 kB / 461.8 MB, free: 22.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.966e-05/0.2721, allocations: 47.94 kB / 461.8 MB, free: 22.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001609/0.2723, allocations: 91.38 kB / 461.9 MB, free: 22.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.2724, allocations: 151.8 kB / 462 MB, free: 22.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.2726, allocations: 286.1 kB / 462.3 MB, free: 22.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000532/0.2731, allocations: 0.6139 MB / 462.9 MB, free: 21.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2731, allocations: 0 / 462.9 MB, free: 21.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2731, allocations: 0 / 462.9 MB, free: 21.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.2731, allocations: 1.094 kB / 462.9 MB, free: 21.91 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.001368/0.2745, allocations: 0.998 MB / 463.9 MB, free: 21.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.2746, allocations: 8.562 kB / 463.9 MB, free: 21.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000297/0.2749, allocations: 100.2 kB / 464 MB, free: 21.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005847/0.2755, allocations: 492.9 kB / 464.5 MB, free: 20.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.579e-05/0.2755, allocations: 28.41 kB / 464.6 MB, free: 20.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.602e-05/0.2756, allocations: 35.66 kB / 464.6 MB, free: 20.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008031/0.2764, allocations: 472.6 kB / 465 MB, free: 20.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.2764, allocations: 0 / 465 MB, free: 20.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.173e-05/0.2765, allocations: 24.58 kB / 465.1 MB, free: 20.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.2765, allocations: 9.156 kB / 465.1 MB, free: 20.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007013/0.2772, allocations: 266.4 kB / 465.3 MB, free: 20.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.279, allocations: 1.125 MB / 466.5 MB, free: 19.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007041/0.2797, allocations: 173.7 kB / 466.6 MB, free: 19.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002396/0.2799, allocations: 82.67 kB / 466.7 MB, free: 19.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.28, allocations: 6.984 kB / 466.7 MB, free: 19.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.28, allocations: 42.52 kB / 466.8 MB, free: 19.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/0.28, allocations: 0 / 466.8 MB, free: 19.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009175/0.2809, allocations: 293.7 kB / 467.1 MB, free: 19.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.2811, allocations: 449.9 kB / 467.5 MB, free: 18.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007698/0.2818, allocations: 0.6397 MB / 468.1 MB, free: 18.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.2819, allocations: 28.02 kB / 468.2 MB, free: 18.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.2821, allocations: 311.2 kB / 468.5 MB, free: 18.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.338e-05/0.2821, allocations: 36.06 kB / 468.5 MB, free: 18.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.2822, allocations: 59.5 kB / 468.6 MB, free: 18.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.133e-05/0.2823, allocations: 357.8 kB / 468.9 MB, free: 17.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002529/0.2826, allocations: 71.91 kB / 469 MB, free: 17.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003024/0.2829, allocations: 186.3 kB / 469.2 MB, free: 17.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005748/0.2835, allocations: 172.1 kB / 469.3 MB, free: 17.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2835, allocations: 0.7031 kB / 469.3 MB, free: 17.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006139/0.2841, allocations: 243 kB / 469.6 MB, free: 17.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.2841, allocations: 7.812 kB / 469.6 MB, free: 17.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2841, allocations: 0 / 469.6 MB, free: 17.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.2842, allocations: 10.11 kB / 469.6 MB, free: 17.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002571/0.2844, allocations: 42.67 kB / 469.6 MB, free: 17.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.2844, allocations: 1.625 kB / 469.6 MB, free: 17.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.2848, allocations: 44.3 kB / 469.7 MB, free: 17.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.2848, allocations: 5.516 kB / 469.7 MB, free: 17.52 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002/0.285, allocations: 184.6 kB / 469.9 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.2851, allocations: 60.62 kB / 469.9 MB, free: 17.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005223/0.2857, allocations: 185 kB / 470.1 MB, free: 17.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.2857, allocations: 5.938 kB / 470.1 MB, free: 17.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.2857, allocations: 0.7031 kB / 470.1 MB, free: 17.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.2857, allocations: 1.719 kB / 470.1 MB, free: 17.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006517/0.2863, allocations: 475.6 kB / 470.6 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.2864, allocations: 4 kB / 470.6 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.2866, allocations: 35.89 kB / 470.6 MB, free: 16.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.2866, allocations: 1.891 kB / 470.6 MB, free: 16.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.2866, allocations: 6.891 kB / 470.6 MB, free: 16.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.2866, allocations: 5.703 kB / 470.6 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2866, allocations: 0 / 470.6 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000671/0.2873, allocations: 401.6 kB / 471 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.2875, allocations: 173 kB / 471.2 MB, free: 16.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.594e-05/0.2876, allocations: 7.453 kB / 471.2 MB, free: 16.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003633/0.288, allocations: 42.98 kB / 471.2 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.172e-05/0.2881, allocations: 15.19 kB / 471.2 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.2881, allocations: 4.266 kB / 471.2 MB, free: 16.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005834/0.2887, allocations: 458.9 kB / 471.7 MB, free: 16.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2887, allocations: 0 / 471.7 MB, free: 16.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004471/0.2891, allocations: 107.7 kB / 471.8 MB, free: 16.28 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 (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.0008152/0.29, allocations: 362.1 kB / 472.2 MB, free: 16.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000588/0.2906, allocations: 171.6 kB / 472.3 MB, free: 16.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.2906, allocations: 1.156 kB / 472.3 MB, free: 16.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002545/0.2908, allocations: 87.75 kB / 472.4 MB, free: 16.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008459/0.2917, allocations: 135.9 kB / 472.5 MB, free: 16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.2932, allocations: 1.115 MB / 473.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.2935, allocations: 0.8855 MB / 474.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002591/0.2938, allocations: 65.36 kB / 474.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.2939, allocations: 37.08 kB / 474.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2939, allocations: 1.469 kB / 474.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of Templates: time 0.01384/0.3077, allocations: 6.265 MB / 480.9 MB, free: 12.91 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)