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.001155/0.001155, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001265/0.001265, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.381/1.381, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2857/0.2857, allocations: 31.17 MB / 321.1 MB, free: 4.812 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001254, allocations: 63.84 kB / 388.3 MB, free: 3.191 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2674, allocations: 56.36 MB / 444.6 MB, free: 34.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008255/0.2756, allocations: 11.77 MB / 456.4 MB, free: 26.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00542/0.2811, allocations: 3.074 MB / 459.5 MB, free: 23.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002282/0.2834, allocations: 72.22 kB / 459.5 MB, free: 23.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005527/0.284, allocations: 134.4 kB / 459.7 MB, free: 23.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000455/0.2845, allocations: 108.4 kB / 459.8 MB, free: 23.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007662/0.2853, allocations: 279.1 kB / 460 MB, free: 23.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005949/0.2859, allocations: 0.6768 MB / 460.7 MB, free: 23.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004906/0.2864, allocations: 351.9 kB / 461.1 MB, free: 22.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002382/0.2866, allocations: 207.8 kB / 461.3 MB, free: 22.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.2868, allocations: 236.4 kB / 461.5 MB, free: 22.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.008e-05/0.2869, allocations: 26 kB / 461.5 MB, free: 22.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.287, allocations: 74.03 kB / 461.6 MB, free: 22.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.2872, allocations: 125.8 kB / 461.7 MB, free: 22.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.2874, allocations: 266.9 kB / 462 MB, free: 22.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004792/0.2878, allocations: 0.5943 MB / 462.6 MB, free: 22.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2879, allocations: 1.609 kB / 462.6 MB, free: 22.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.2879, allocations: 0 / 462.6 MB, free: 22.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.2879, allocations: 4 kB / 462.6 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.001862/0.2898, allocations: 0.991 MB / 463.6 MB, free: 21.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.881e-05/0.2898, allocations: 9.781 kB / 463.6 MB, free: 21.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004083/0.2902, allocations: 99.56 kB / 463.7 MB, free: 21.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008064/0.2911, allocations: 494.8 kB / 464.2 MB, free: 20.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.167e-05/0.2911, allocations: 28.94 kB / 464.2 MB, free: 20.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.182e-05/0.2912, allocations: 38.97 kB / 464.2 MB, free: 20.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009614/0.2921, allocations: 466.8 kB / 464.7 MB, free: 20.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.2922, allocations: 1.062 kB / 464.7 MB, free: 20.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.737e-05/0.2922, allocations: 20.47 kB / 464.7 MB, free: 20.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/0.2923, allocations: 9.094 kB / 464.7 MB, free: 20.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007764/0.293, allocations: 263.8 kB / 465 MB, free: 20.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.2949, allocations: 1.129 MB / 466.1 MB, free: 19.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007018/0.2956, allocations: 176.5 kB / 466.3 MB, free: 19.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/0.2959, allocations: 78.39 kB / 466.3 MB, free: 19.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.274e-05/0.296, allocations: 7.219 kB / 466.3 MB, free: 19.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.296, allocations: 37.81 kB / 466.4 MB, free: 19.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 3.296e-06/0.296, allocations: 0 / 466.4 MB, free: 19.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.001185/0.2972, allocations: 305.3 kB / 466.7 MB, free: 19.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002084/0.2974, allocations: 446.6 kB / 467.1 MB, free: 19.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.2984, allocations: 0.6395 MB / 467.8 MB, free: 18.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.2985, allocations: 36.45 kB / 467.8 MB, free: 18.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.2987, allocations: 306.7 kB / 468.1 MB, free: 18.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.2987, allocations: 44.19 kB / 468.1 MB, free: 18.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.2988, allocations: 55.3 kB / 468.2 MB, free: 18.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.421e-05/0.2989, allocations: 361 kB / 468.5 MB, free: 18.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002571/0.2992, allocations: 68.02 kB / 468.6 MB, free: 18.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.2995, allocations: 192.8 kB / 468.8 MB, free: 17.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004799/0.3, allocations: 156.8 kB / 469 MB, free: 17.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3, allocations: 0 / 469 MB, free: 17.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006616/0.3007, allocations: 246.9 kB / 469.2 MB, free: 17.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3007, allocations: 11.28 kB / 469.2 MB, free: 17.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.3007, allocations: 1.125 kB / 469.2 MB, free: 17.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.3008, allocations: 5.625 kB / 469.2 MB, free: 17.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.3011, allocations: 39 kB / 469.2 MB, free: 17.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.3011, allocations: 5.531 kB / 469.3 MB, free: 17.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003823/0.3015, allocations: 43.97 kB / 469.3 MB, free: 17.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.3015, allocations: 4.812 kB / 469.3 MB, free: 17.73 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.0001999/0.3017, allocations: 185.9 kB / 469.5 MB, free: 17.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.3018, allocations: 59.91 kB / 469.5 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005325/0.3024, allocations: 189.3 kB / 469.7 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3024, allocations: 5.094 kB / 469.7 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3024, allocations: 1.156 kB / 469.7 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.3024, allocations: 1.766 kB / 469.7 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006183/0.303, allocations: 475.2 kB / 470.2 MB, free: 17.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.303, allocations: 1.125 kB / 470.2 MB, free: 17.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002169/0.3032, allocations: 36.58 kB / 470.2 MB, free: 17.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.3033, allocations: 96 / 470.2 MB, free: 17.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.3033, allocations: 6.844 kB / 470.2 MB, free: 17.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.3033, allocations: 5.938 kB / 470.2 MB, free: 17.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3033, allocations: 1.188 kB / 470.2 MB, free: 17.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000633/0.3039, allocations: 404.5 kB / 470.6 MB, free: 16.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001986/0.3041, allocations: 171.4 kB / 470.8 MB, free: 16.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.429e-05/0.3042, allocations: 4.109 kB / 470.8 MB, free: 16.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003607/0.3046, allocations: 49.17 kB / 470.9 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.507e-05/0.3047, allocations: 10.06 kB / 470.9 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.3047, allocations: 3.469 kB / 470.9 MB, free: 16.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005785/0.3053, allocations: 462 kB / 471.3 MB, free: 16.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3053, allocations: 1.312 kB / 471.3 MB, free: 16.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004601/0.3057, allocations: 106.8 kB / 471.4 MB, free: 16.49 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.0008316/0.3066, allocations: 354.4 kB / 471.8 MB, free: 16.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006248/0.3072, allocations: 171.3 kB / 471.9 MB, free: 16.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.3072, allocations: 5.531 kB / 472 MB, free: 16.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002673/0.3075, allocations: 82.61 kB / 472 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.0009858/0.3085, allocations: 128.4 kB / 472.2 MB, free: 16.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.3102, allocations: 1.103 MB / 473.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.3107, allocations: 0.8822 MB / 474.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002948/0.311, allocations: 66.36 kB / 474.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.3111, allocations: 40.66 kB / 474.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of SimCode: time 5e-07/0.3111, allocations: 0 / 474.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of Templates: time 0.01284/0.3239, allocations: 6.031 MB / 480.3 MB, free: 13.34 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)