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.001003/0.001004, allocations: 91.92 kB / 16.02 MB, free: 80 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.001023/0.001023, allocations: 179.7 kB / 16.92 MB, free: 6.656 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.356/1.356, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2786/0.2786, allocations: 31.16 MB / 323.2 MB, free: 4.801 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002898/0.0002898, allocations: 8 kB / 391.4 MB, free: 1.961 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2479, allocations: 57.39 MB / 448.8 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007448/0.2553, allocations: 11.19 MB / 460 MB, free: 25.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003828/0.2592, allocations: 3.052 MB / 463 MB, free: 23.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007307/0.2599, allocations: 69.56 kB / 463.1 MB, free: 23.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003217/0.2603, allocations: 132.4 kB / 463.2 MB, free: 23.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003531/0.2606, allocations: 96.23 kB / 463.3 MB, free: 23.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005369/0.2612, allocations: 287.9 kB / 463.6 MB, free: 23.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005431/0.2617, allocations: 0.6751 MB / 464.3 MB, free: 22.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004604/0.2622, allocations: 349.2 kB / 464.6 MB, free: 22.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/0.2624, allocations: 180.5 kB / 464.8 MB, free: 22.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.2626, allocations: 195.6 kB / 465 MB, free: 22.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.628e-05/0.2626, allocations: 13.44 kB / 465 MB, free: 22.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.2628, allocations: 58.5 kB / 465.1 MB, free: 22.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.2629, allocations: 107.7 kB / 465.2 MB, free: 22.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.263, allocations: 262.3 kB / 465.4 MB, free: 22.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.2635, allocations: 443.5 kB / 465.9 MB, free: 21.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2635, allocations: 0 / 465.9 MB, free: 21.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2635, allocations: 0 / 465.9 MB, free: 21.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2635, allocations: 0 / 465.9 MB, free: 21.97 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.001188/0.2647, allocations: 0.8911 MB / 466.7 MB, free: 21.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.2648, allocations: 9.5 kB / 466.8 MB, free: 21.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003083/0.2651, allocations: 99.84 kB / 466.9 MB, free: 21.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005132/0.2656, allocations: 495.4 kB / 467.3 MB, free: 20.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.305e-05/0.2656, allocations: 32.16 kB / 467.4 MB, free: 20.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.615e-05/0.2657, allocations: 31.25 kB / 467.4 MB, free: 20.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007819/0.2665, allocations: 485.9 kB / 467.9 MB, free: 20.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2666, allocations: 3.938 kB / 467.9 MB, free: 20.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/0.2666, allocations: 24.75 kB / 467.9 MB, free: 20.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.2666, allocations: 8.719 kB / 467.9 MB, free: 20.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007423/0.2674, allocations: 280.5 kB / 468.2 MB, free: 20.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.2691, allocations: 1.144 MB / 469.3 MB, free: 19.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007645/0.2699, allocations: 188.7 kB / 469.5 MB, free: 19.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/0.2701, allocations: 88.25 kB / 469.6 MB, free: 19.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.2702, allocations: 7.312 kB / 469.6 MB, free: 19.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.467e-05/0.2702, allocations: 33.61 kB / 469.6 MB, free: 19.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 2.434e-06/0.2702, allocations: 1.156 kB / 469.6 MB, free: 19.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.001021/0.2713, allocations: 338.4 kB / 470 MB, free: 19.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.419e-05/0.2713, allocations: 443.1 kB / 470.4 MB, free: 18.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007168/0.2721, allocations: 0.6391 MB / 471 MB, free: 18.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.2721, allocations: 31.98 kB / 471.1 MB, free: 18.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.2723, allocations: 307.1 kB / 471.4 MB, free: 18.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.755e-05/0.2724, allocations: 39.03 kB / 471.4 MB, free: 18.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.2724, allocations: 23.02 kB / 471.4 MB, free: 18.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.2725, allocations: 354.5 kB / 471.8 MB, free: 18.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002723/0.2728, allocations: 79.88 kB / 471.9 MB, free: 18.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003328/0.2731, allocations: 210.9 kB / 472.1 MB, free: 17.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005612/0.2737, allocations: 180.2 kB / 472.2 MB, free: 17.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2737, allocations: 0 / 472.2 MB, free: 17.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007088/0.2744, allocations: 267.7 kB / 472.5 MB, free: 17.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.2745, allocations: 5.344 kB / 472.5 MB, free: 17.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.2745, allocations: 1.344 kB / 472.5 MB, free: 17.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.2745, allocations: 9.141 kB / 472.5 MB, free: 17.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000257/0.2747, allocations: 52.02 kB / 472.6 MB, free: 17.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.2748, allocations: 2.109 kB / 472.6 MB, free: 17.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003887/0.2752, allocations: 56.84 kB / 472.6 MB, free: 17.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.2752, allocations: 10.48 kB / 472.6 MB, free: 17.64 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.0001763/0.2754, allocations: 177.8 kB / 472.8 MB, free: 17.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.622e-05/0.2755, allocations: 59.25 kB / 472.9 MB, free: 17.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005103/0.276, allocations: 207.1 kB / 473.1 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.276, allocations: 5.781 kB / 473.1 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.276, allocations: 1.094 kB / 473.1 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.2761, allocations: 0.7969 kB / 473.1 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005567/0.2766, allocations: 476.5 kB / 473.5 MB, free: 17.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2766, allocations: 0 / 473.5 MB, free: 17.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002166/0.2769, allocations: 45.8 kB / 473.6 MB, free: 17.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.2769, allocations: 1.062 kB / 473.6 MB, free: 17.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.2769, allocations: 2.344 kB / 473.6 MB, free: 17.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2769, allocations: 5.734 kB / 473.6 MB, free: 17.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2769, allocations: 1 kB / 473.6 MB, free: 17.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006878/0.2776, allocations: 421 kB / 474 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001623/0.2778, allocations: 177.1 kB / 474.2 MB, free: 16.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.984e-05/0.2779, allocations: 3.625 kB / 474.2 MB, free: 16.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004298/0.2783, allocations: 53.12 kB / 474.2 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.2784, allocations: 8.797 kB / 474.2 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.2784, allocations: 11.83 kB / 474.3 MB, free: 16.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004929/0.2789, allocations: 458.6 kB / 474.7 MB, free: 16.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2789, allocations: 3.938 kB / 474.7 MB, free: 16.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004255/0.2793, allocations: 104 kB / 474.8 MB, free: 16.39 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.0007713/0.2801, allocations: 360 kB / 475.2 MB, free: 16.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006525/0.2808, allocations: 187.4 kB / 475.3 MB, free: 16.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2808, allocations: 1.219 kB / 475.3 MB, free: 16.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002907/0.2811, allocations: 96.88 kB / 475.4 MB, free: 16.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008814/0.282, allocations: 124.6 kB / 475.6 MB, free: 16.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.2834, allocations: 1.148 MB / 476.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.2837, allocations: 0.8888 MB / 477.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.2839, allocations: 43.17 kB / 477.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2839, allocations: 0 / 477.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of Templates: time 0.009446/0.2933, allocations: 6.469 MB / 484.1 MB, free: 12.73 MB / 350.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)