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.001457/0.001458, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 194.1 kB / 16.53 MB, free: 6.699 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.374/1.374, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2997/0.2997, allocations: 31.17 MB / 321.5 MB, free: 4.422 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.00131, allocations: 55.91 kB / 388.9 MB, free: 2.582 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2597, allocations: 56.35 MB / 445.3 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.005987/0.2657, allocations: 6.981 MB / 452.3 MB, free: 29.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002899/0.2687, allocations: 2.16 MB / 454.4 MB, free: 28.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007487/0.2694, allocations: 21 kB / 454.5 MB, free: 28.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004478/0.2699, allocations: 163.8 kB / 454.6 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004199/0.2704, allocations: 134.3 kB / 454.7 MB, free: 27.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006814/0.2711, allocations: 335.1 kB / 455.1 MB, free: 27.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005073/0.2716, allocations: 0.7169 MB / 455.8 MB, free: 27.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000444/0.272, allocations: 355 kB / 456.1 MB, free: 27.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.2722, allocations: 235.2 kB / 456.4 MB, free: 26.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001808/0.2724, allocations: 244.8 kB / 456.6 MB, free: 26.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.141e-05/0.2725, allocations: 45.06 kB / 456.6 MB, free: 26.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.2727, allocations: 97.05 kB / 456.7 MB, free: 26.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.2728, allocations: 140.6 kB / 456.9 MB, free: 26.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.273, allocations: 287.2 kB / 457.2 MB, free: 26.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005054/0.2735, allocations: 0.6156 MB / 457.8 MB, free: 26.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.2735, allocations: 1.375 kB / 457.8 MB, free: 26.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2735, allocations: 0 / 457.8 MB, free: 26.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.2735, allocations: 0 / 457.8 MB, free: 26.21 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.001138/0.2747, allocations: 0.999 MB / 458.8 MB, free: 25.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.2747, allocations: 13.5 kB / 458.8 MB, free: 25.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002397/0.275, allocations: 97.75 kB / 458.9 MB, free: 25.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004749/0.2754, allocations: 496.4 kB / 459.4 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.2755, allocations: 27.47 kB / 459.4 MB, free: 25.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.76e-05/0.2755, allocations: 31.12 kB / 459.4 MB, free: 25.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006849/0.2762, allocations: 475.5 kB / 459.9 MB, free: 24.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.2762, allocations: 3.938 kB / 459.9 MB, free: 24.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.579e-05/0.2763, allocations: 20.95 kB / 459.9 MB, free: 24.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.2763, allocations: 9.688 kB / 459.9 MB, free: 24.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006508/0.2769, allocations: 261 kB / 460.2 MB, free: 24.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.2784, allocations: 1.131 MB / 461.3 MB, free: 23.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006529/0.2791, allocations: 172.6 kB / 461.5 MB, free: 23.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.2793, allocations: 85.17 kB / 461.6 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.2794, allocations: 10.42 kB / 461.6 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.2794, allocations: 32.88 kB / 461.6 MB, free: 23.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.2794, allocations: 1.188 kB / 461.6 MB, free: 23.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008739/0.2803, allocations: 301.2 kB / 461.9 MB, free: 23.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.2804, allocations: 444.3 kB / 462.3 MB, free: 23.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007009/0.2811, allocations: 0.6373 MB / 463 MB, free: 22.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.2812, allocations: 33.27 kB / 463 MB, free: 22.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.2814, allocations: 309.9 kB / 463.3 MB, free: 22.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.031e-05/0.2814, allocations: 34.75 kB / 463.3 MB, free: 22.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.664e-05/0.2815, allocations: 63.78 kB / 463.4 MB, free: 22.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.988e-05/0.2816, allocations: 357.9 kB / 463.7 MB, free: 22.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.2819, allocations: 66.98 kB / 463.8 MB, free: 22.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003166/0.2822, allocations: 198.6 kB / 464 MB, free: 22.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004752/0.2827, allocations: 159.6 kB / 464.2 MB, free: 21.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2827, allocations: 0 / 464.2 MB, free: 21.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006185/0.2833, allocations: 248.8 kB / 464.4 MB, free: 21.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.2833, allocations: 5.891 kB / 464.4 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.2833, allocations: 5.375 kB / 464.4 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.2834, allocations: 5.344 kB / 464.4 MB, free: 21.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002449/0.2836, allocations: 42.5 kB / 464.5 MB, free: 21.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.2836, allocations: 1.734 kB / 464.5 MB, free: 21.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003293/0.284, allocations: 43.78 kB / 464.5 MB, free: 21.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.769e-05/0.284, allocations: 5.188 kB / 464.5 MB, free: 21.82 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.0001886/0.2842, allocations: 181.7 kB / 464.7 MB, free: 21.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.2843, allocations: 60.33 kB / 464.8 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004725/0.2848, allocations: 193.8 kB / 464.9 MB, free: 21.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.2848, allocations: 5.312 kB / 464.9 MB, free: 21.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2848, allocations: 1.375 kB / 464.9 MB, free: 21.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2848, allocations: 1.172 kB / 464.9 MB, free: 21.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000551/0.2854, allocations: 479.5 kB / 465.4 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2854, allocations: 1.891 kB / 465.4 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001976/0.2856, allocations: 30.78 kB / 465.4 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2856, allocations: 0.9688 kB / 465.4 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.2856, allocations: 3.516 kB / 465.5 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.2856, allocations: 5.641 kB / 465.5 MB, free: 21.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2856, allocations: 0 / 465.5 MB, free: 21.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005854/0.2862, allocations: 410.6 kB / 465.9 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.2864, allocations: 171.5 kB / 466 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.2865, allocations: 3.344 kB / 466 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003425/0.2868, allocations: 42.92 kB / 466.1 MB, free: 20.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.725e-05/0.2869, allocations: 11.83 kB / 466.1 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.2869, allocations: 3.891 kB / 466.1 MB, free: 20.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004906/0.2874, allocations: 462.6 kB / 466.5 MB, free: 20.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2874, allocations: 0 / 466.5 MB, free: 20.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004196/0.2878, allocations: 104.2 kB / 466.6 MB, free: 20.59 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.0007909/0.2886, allocations: 361 kB / 467 MB, free: 20.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005656/0.2892, allocations: 172.7 kB / 467.2 MB, free: 20.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2892, allocations: 1.125 kB / 467.2 MB, free: 20.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000257/0.2895, allocations: 92.56 kB / 467.3 MB, free: 20.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008003/0.2903, allocations: 143.7 kB / 467.4 MB, free: 20.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.2916, allocations: 0.8683 MB / 468.3 MB, free: 19.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.2919, allocations: 0.8853 MB / 469.1 MB, free: 19.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002221/0.2922, allocations: 70.09 kB / 469.2 MB, free: 19.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.317e-05/0.2923, allocations: 37.44 kB / 469.3 MB, free: 19.05 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2923, allocations: 0 / 469.3 MB, free: 19.05 MB / 350.1 MB Notification: Performance of Templates: time 0.01358/0.3058, allocations: 6.411 MB / 475.7 MB, free: 17.65 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)