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.005699/0.005699, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001479/0.001479, allocations: 195 kB / 16.79 MB, free: 6.254 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.368/1.368, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2673/0.2673, allocations: 31.17 MB / 321.8 MB, free: 4.785 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 63.91 kB / 388.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2251, allocations: 56.35 MB / 445.3 MB, free: 34.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008323/0.2334, allocations: 11.78 MB / 457.1 MB, free: 25.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004282/0.2377, allocations: 3.072 MB / 460.1 MB, free: 23.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.2388, allocations: 76.72 kB / 460.2 MB, free: 23.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004563/0.2393, allocations: 132.3 kB / 460.3 MB, free: 23.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003103/0.2396, allocations: 101.7 kB / 460.4 MB, free: 23.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005742/0.2402, allocations: 279.5 kB / 460.7 MB, free: 23.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005124/0.2407, allocations: 0.681 MB / 461.4 MB, free: 22.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004493/0.2412, allocations: 353.6 kB / 461.7 MB, free: 22.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.2414, allocations: 205.7 kB / 461.9 MB, free: 22.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.2416, allocations: 236.4 kB / 462.2 MB, free: 22.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.109e-05/0.2416, allocations: 24.72 kB / 462.2 MB, free: 22.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.2418, allocations: 65.75 kB / 462.2 MB, free: 22.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.2419, allocations: 137.9 kB / 462.4 MB, free: 22.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001781/0.2421, allocations: 265.2 kB / 462.6 MB, free: 22.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003298/0.2424, allocations: 455 kB / 463.1 MB, free: 22.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2424, allocations: 0 / 463.1 MB, free: 22.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.2424, allocations: 0 / 463.1 MB, free: 22.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.2424, allocations: 0 / 463.1 MB, free: 22.11 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.001356/0.2438, allocations: 0.9961 MB / 464.1 MB, free: 21.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/0.2439, allocations: 13.39 kB / 464.1 MB, free: 21.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002748/0.2442, allocations: 98.31 kB / 464.2 MB, free: 21.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005322/0.2447, allocations: 496.5 kB / 464.7 MB, free: 20.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.685e-05/0.2448, allocations: 31.81 kB / 464.7 MB, free: 20.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.966e-05/0.2448, allocations: 36.05 kB / 464.7 MB, free: 20.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000797/0.2456, allocations: 466.1 kB / 465.2 MB, free: 20.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.295e-05/0.2457, allocations: 7.938 kB / 465.2 MB, free: 20.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.611e-05/0.2457, allocations: 21.75 kB / 465.2 MB, free: 20.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.2458, allocations: 9.375 kB / 465.2 MB, free: 20.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000703/0.2465, allocations: 256.8 kB / 465.5 MB, free: 20.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.2482, allocations: 1.126 MB / 466.6 MB, free: 19.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007184/0.2489, allocations: 175.1 kB / 466.8 MB, free: 19.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.2492, allocations: 82.75 kB / 466.9 MB, free: 19.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.2493, allocations: 3.453 kB / 466.9 MB, free: 19.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.2493, allocations: 42.41 kB / 466.9 MB, free: 19.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.2493, allocations: 0 / 466.9 MB, free: 19.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009511/0.2502, allocations: 299.8 kB / 467.2 MB, free: 19.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.2503, allocations: 450.8 kB / 467.6 MB, free: 19.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007264/0.2511, allocations: 0.6393 MB / 468.3 MB, free: 18.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.2511, allocations: 29.36 kB / 468.3 MB, free: 18.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.2513, allocations: 311 kB / 468.6 MB, free: 18.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.2513, allocations: 35.31 kB / 468.6 MB, free: 18.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/0.2515, allocations: 55.62 kB / 468.7 MB, free: 18.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.091e-05/0.2516, allocations: 357.3 kB / 469.1 MB, free: 18.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.2518, allocations: 75.33 kB / 469.1 MB, free: 18.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/0.2522, allocations: 191.4 kB / 469.3 MB, free: 17.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000522/0.2527, allocations: 156.7 kB / 469.5 MB, free: 17.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2527, allocations: 0 / 469.5 MB, free: 17.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006444/0.2534, allocations: 242.6 kB / 469.7 MB, free: 17.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.2534, allocations: 7.906 kB / 469.7 MB, free: 17.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.2534, allocations: 8.641 kB / 469.7 MB, free: 17.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.2534, allocations: 6.281 kB / 469.7 MB, free: 17.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002627/0.2537, allocations: 49.98 kB / 469.8 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.2537, allocations: 1.672 kB / 469.8 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003641/0.2541, allocations: 48.34 kB / 469.8 MB, free: 17.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.2541, allocations: 5.406 kB / 469.8 MB, free: 17.7 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.0002265/0.2543, allocations: 177.1 kB / 470 MB, free: 17.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.2544, allocations: 60.25 kB / 470.1 MB, free: 17.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005138/0.255, allocations: 192.9 kB / 470.2 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.255, allocations: 6.25 kB / 470.3 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.255, allocations: 0 / 470.3 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.255, allocations: 1.875 kB / 470.3 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005499/0.2556, allocations: 472.1 kB / 470.7 MB, free: 17.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.2556, allocations: 0.75 kB / 470.7 MB, free: 17.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.2558, allocations: 31.73 kB / 470.7 MB, free: 17.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2558, allocations: 1.125 kB / 470.7 MB, free: 17.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.2558, allocations: 11.03 kB / 470.8 MB, free: 17.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.2558, allocations: 5.281 kB / 470.8 MB, free: 17.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2558, allocations: 0.6562 kB / 470.8 MB, free: 17.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007028/0.2565, allocations: 405.5 kB / 471.2 MB, free: 16.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001661/0.2567, allocations: 167.7 kB / 471.3 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.519e-05/0.2568, allocations: 8.672 kB / 471.3 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003977/0.2572, allocations: 38.3 kB / 471.4 MB, free: 16.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.763e-05/0.2573, allocations: 11.64 kB / 471.4 MB, free: 16.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.2573, allocations: 4.766 kB / 471.4 MB, free: 16.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004841/0.2578, allocations: 458.8 kB / 471.8 MB, free: 16.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2578, allocations: 4 kB / 471.8 MB, free: 16.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004638/0.2583, allocations: 108 kB / 471.9 MB, free: 16.48 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.0007763/0.2591, allocations: 362 kB / 472.3 MB, free: 16.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005979/0.2597, allocations: 166.8 kB / 472.5 MB, free: 16.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.2597, allocations: 1.219 kB / 472.5 MB, free: 16.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.2599, allocations: 79.55 kB / 472.5 MB, free: 16.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000864/0.2608, allocations: 137.4 kB / 472.7 MB, free: 16.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.2622, allocations: 1.15 MB / 473.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.2626, allocations: 0.8853 MB / 474.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.2628, allocations: 38.09 kB / 474.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2628, allocations: 0 / 474.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of Templates: time 0.009811/0.2726, allocations: 6.551 MB / 481.3 MB, free: 12.9 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)