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.0009624/0.0009624, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001128/0.001128, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2803/0.2803, allocations: 31.15 MB / 322.2 MB, free: 4.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003294/0.0003295, allocations: 8 kB / 390.1 MB, free: 2.359 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2908, allocations: 57.39 MB / 447.5 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.00697/0.2978, allocations: 10.51 MB / 458 MB, free: 26.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004995/0.3028, allocations: 3.004 MB / 461 MB, free: 24.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00166/0.3045, allocations: 73.53 kB / 461.1 MB, free: 24.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005185/0.3051, allocations: 156 kB / 461.3 MB, free: 24.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005691/0.3056, allocations: 157 kB / 461.4 MB, free: 24.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008392/0.3065, allocations: 278.2 kB / 461.7 MB, free: 23.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005816/0.3071, allocations: 0.622 MB / 462.3 MB, free: 23.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003599/0.3074, allocations: 237.3 kB / 462.5 MB, free: 23.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.3076, allocations: 163.6 kB / 462.7 MB, free: 23.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.3078, allocations: 184.5 kB / 462.9 MB, free: 23.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.18e-05/0.3078, allocations: 13.41 kB / 462.9 MB, free: 23.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.308, allocations: 55.09 kB / 462.9 MB, free: 23.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.986e-05/0.3081, allocations: 108.5 kB / 463 MB, free: 23.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.402e-05/0.3082, allocations: 114.6 kB / 463.2 MB, free: 23.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003666/0.3085, allocations: 440 kB / 463.6 MB, free: 23.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3085, allocations: 3.938 kB / 463.6 MB, free: 23.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3086, allocations: 0 / 463.6 MB, free: 23.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.3086, allocations: 0 / 463.6 MB, free: 23.04 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.001031/0.3096, allocations: 0.8966 MB / 464.5 MB, free: 22.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.3096, allocations: 9.281 kB / 464.5 MB, free: 22.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002422/0.3099, allocations: 98.84 kB / 464.6 MB, free: 22.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000508/0.3104, allocations: 465.8 kB / 465.1 MB, free: 21.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.3104, allocations: 28.66 kB / 465.1 MB, free: 21.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.641e-05/0.3105, allocations: 34.94 kB / 465.1 MB, free: 21.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007253/0.3112, allocations: 486.1 kB / 465.6 MB, free: 21.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.3113, allocations: 0 / 465.6 MB, free: 21.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.3113, allocations: 17.06 kB / 465.6 MB, free: 21.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.3113, allocations: 13.61 kB / 465.6 MB, free: 21.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006274/0.3119, allocations: 275.5 kB / 465.9 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.3136, allocations: 1.137 MB / 467 MB, free: 20.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006283/0.3143, allocations: 192.3 kB / 467.2 MB, free: 20.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.3145, allocations: 88.61 kB / 467.3 MB, free: 20.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.3145, allocations: 5.969 kB / 467.3 MB, free: 20.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.3146, allocations: 42.39 kB / 467.3 MB, free: 20.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.3146, allocations: 0 / 467.3 MB, free: 20.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008515/0.3154, allocations: 326.6 kB / 467.7 MB, free: 20.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.3156, allocations: 445.4 kB / 468.1 MB, free: 20.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008283/0.3164, allocations: 0.632 MB / 468.7 MB, free: 19.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.3164, allocations: 28.64 kB / 468.8 MB, free: 19.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.3166, allocations: 318 kB / 469.1 MB, free: 19.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.3167, allocations: 38.8 kB / 469.1 MB, free: 19.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.285e-05/0.3167, allocations: 5.469 kB / 469.1 MB, free: 19.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3168, allocations: 362 kB / 469.5 MB, free: 19.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002502/0.3171, allocations: 80.23 kB / 469.5 MB, free: 19.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000323/0.3174, allocations: 197.7 kB / 469.7 MB, free: 18.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.3177, allocations: 103.3 kB / 469.8 MB, free: 18.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3177, allocations: 7.938 kB / 469.8 MB, free: 18.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006093/0.3183, allocations: 264.1 kB / 470.1 MB, free: 18.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.3183, allocations: 6.703 kB / 470.1 MB, free: 18.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.3184, allocations: 320 / 470.1 MB, free: 18.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.3184, allocations: 2.406 kB / 470.1 MB, free: 18.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.3186, allocations: 47.34 kB / 470.2 MB, free: 18.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.3187, allocations: 1.906 kB / 470.2 MB, free: 18.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003141/0.319, allocations: 62.33 kB / 470.2 MB, free: 18.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.319, allocations: 9.172 kB / 470.2 MB, free: 18.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001821/0.3192, allocations: 189 kB / 470.4 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-05/0.3193, allocations: 64.92 kB / 470.5 MB, free: 18.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004529/0.3197, allocations: 193.6 kB / 470.7 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3198, allocations: 2.094 kB / 470.7 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3198, allocations: 0.9375 kB / 470.7 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3198, allocations: 5.781 kB / 470.7 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005539/0.3203, allocations: 479.9 kB / 471.1 MB, free: 18.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3203, allocations: 0 / 471.1 MB, free: 18.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001928/0.3205, allocations: 41.27 kB / 471.2 MB, free: 18.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3206, allocations: 1.75 kB / 471.2 MB, free: 18.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.3206, allocations: 5.641 kB / 471.2 MB, free: 18.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3206, allocations: 1.609 kB / 471.2 MB, free: 18.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3206, allocations: 1.188 kB / 471.2 MB, free: 18.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005663/0.3212, allocations: 429.7 kB / 471.6 MB, free: 17.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.3213, allocations: 172.3 kB / 471.8 MB, free: 17.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.3214, allocations: 3.812 kB / 471.8 MB, free: 17.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003342/0.3217, allocations: 52.12 kB / 471.8 MB, free: 17.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.196e-05/0.3218, allocations: 12.98 kB / 471.9 MB, free: 17.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.3218, allocations: 3.656 kB / 471.9 MB, free: 17.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005278/0.3224, allocations: 458.6 kB / 472.3 MB, free: 17.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3224, allocations: 0 / 472.3 MB, free: 17.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000409/0.3228, allocations: 103.6 kB / 472.4 MB, free: 17.56 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007489/0.3235, allocations: 353.5 kB / 472.7 MB, free: 17.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005414/0.3241, allocations: 189.4 kB / 472.9 MB, free: 17.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3241, allocations: 1.031 kB / 472.9 MB, free: 17.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002717/0.3244, allocations: 97.77 kB / 473 MB, free: 17.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007503/0.3251, allocations: 135.1 kB / 473.2 MB, free: 17.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.3266, allocations: 1.049 MB / 474.2 MB, free: 16.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.327, allocations: 0.8856 MB / 475.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002534/0.3272, allocations: 65.52 kB / 475.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.3273, allocations: 36.72 kB / 475.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3274, allocations: 0 / 475.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of Templates: time 0.0118/0.3392, allocations: 5.777 MB / 481 MB, free: 14.46 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)