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.0009648/0.000965, 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.0009818/0.000982, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.308/1.308, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.281/0.281, allocations: 31.19 MB / 323.3 MB, free: 4.918 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003481, allocations: 8 kB / 391.4 MB, free: 2.055 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2605, allocations: 57.4 MB / 448.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007527/0.2681, allocations: 11.2 MB / 460 MB, free: 25.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005577/0.2737, allocations: 3.051 MB / 463.1 MB, free: 23.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002154/0.2759, allocations: 71.78 kB / 463.2 MB, free: 23.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005557/0.2765, allocations: 130.1 kB / 463.3 MB, free: 23.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006057/0.2771, allocations: 109.3 kB / 463.4 MB, free: 23.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008212/0.2779, allocations: 276.1 kB / 463.7 MB, free: 23.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008307/0.2788, allocations: 0.6745 MB / 464.3 MB, free: 22.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006017/0.2794, allocations: 345.1 kB / 464.7 MB, free: 22.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000273/0.2797, allocations: 171.8 kB / 464.8 MB, free: 22.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.2799, allocations: 198.2 kB / 465 MB, free: 22.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.76e-05/0.28, allocations: 13.34 kB / 465 MB, free: 22.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001821/0.2802, allocations: 58.3 kB / 465.1 MB, free: 22.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.2803, allocations: 102.2 kB / 465.2 MB, free: 22.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001915/0.2805, allocations: 269.8 kB / 465.5 MB, free: 22.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004206/0.2809, allocations: 446.9 kB / 465.9 MB, free: 21.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2809, allocations: 1.469 kB / 465.9 MB, free: 21.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2809, allocations: 0 / 465.9 MB, free: 21.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.281, allocations: 0 / 465.9 MB, free: 21.91 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.001209/0.2822, allocations: 0.8889 MB / 466.8 MB, free: 21.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.2822, allocations: 8.688 kB / 466.8 MB, free: 21.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000275/0.2825, allocations: 99.14 kB / 466.9 MB, free: 21.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005573/0.2831, allocations: 491.2 kB / 467.4 MB, free: 20.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.2831, allocations: 29.34 kB / 467.4 MB, free: 20.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.2832, allocations: 39.2 kB / 467.4 MB, free: 20.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008121/0.284, allocations: 487.6 kB / 467.9 MB, free: 20.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.284, allocations: 5.344 kB / 467.9 MB, free: 20.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.974e-05/0.2841, allocations: 21 kB / 467.9 MB, free: 20.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.2841, allocations: 13.53 kB / 468 MB, free: 20.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007159/0.2848, allocations: 280.4 kB / 468.2 MB, free: 20.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.2866, allocations: 1.14 MB / 469.4 MB, free: 19.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007033/0.2873, allocations: 195.6 kB / 469.6 MB, free: 19.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.2876, allocations: 87.88 kB / 469.7 MB, free: 19.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/0.2876, allocations: 1.531 kB / 469.7 MB, free: 19.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.2876, allocations: 41.62 kB / 469.7 MB, free: 19.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.814e-06/0.2876, allocations: 0 / 469.7 MB, free: 19.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009851/0.2886, allocations: 334.4 kB / 470 MB, free: 19.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.2888, allocations: 449.5 kB / 470.5 MB, free: 18.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007755/0.2896, allocations: 0.6402 MB / 471.1 MB, free: 18.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.2896, allocations: 28.94 kB / 471.1 MB, free: 18.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.2898, allocations: 310.7 kB / 471.4 MB, free: 18.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.677e-05/0.2898, allocations: 34.48 kB / 471.5 MB, free: 18.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.2899, allocations: 19.55 kB / 471.5 MB, free: 18.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.836e-05/0.29, allocations: 357.1 kB / 471.8 MB, free: 17.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.2902, allocations: 85.86 kB / 471.9 MB, free: 17.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.2906, allocations: 200.6 kB / 472.1 MB, free: 17.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005077/0.2911, allocations: 184.3 kB / 472.3 MB, free: 17.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2911, allocations: 0 / 472.3 MB, free: 17.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006649/0.2918, allocations: 267 kB / 472.6 MB, free: 17.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.2918, allocations: 5.188 kB / 472.6 MB, free: 17.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2918, allocations: 1.531 kB / 472.6 MB, free: 17.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.2918, allocations: 5.812 kB / 472.6 MB, free: 17.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.2921, allocations: 46.48 kB / 472.6 MB, free: 17.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.872e-06/0.2921, allocations: 1.812 kB / 472.6 MB, free: 17.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003843/0.2925, allocations: 58.31 kB / 472.7 MB, free: 17.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.2925, allocations: 6.484 kB / 472.7 MB, free: 17.58 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.0002177/0.2928, allocations: 175.8 kB / 472.8 MB, free: 17.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.517e-05/0.2929, allocations: 65.03 kB / 472.9 MB, free: 17.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004985/0.2934, allocations: 194.5 kB / 473.1 MB, free: 17.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.2934, allocations: 5.812 kB / 473.1 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.2934, allocations: 1.188 kB / 473.1 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2934, allocations: 6.047 kB / 473.1 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006201/0.294, allocations: 478.5 kB / 473.6 MB, free: 17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.294, allocations: 5.734 kB / 473.6 MB, free: 17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/0.2943, allocations: 36.5 kB / 473.6 MB, free: 17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.2943, allocations: 1.344 kB / 473.6 MB, free: 17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.2943, allocations: 6.719 kB / 473.6 MB, free: 17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.2943, allocations: 5.188 kB / 473.6 MB, free: 16.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2943, allocations: 13.14 kB / 473.6 MB, free: 16.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006349/0.2949, allocations: 417 kB / 474.1 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001906/0.2951, allocations: 173.9 kB / 474.2 MB, free: 16.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.77e-05/0.2952, allocations: 3.172 kB / 474.2 MB, free: 16.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000372/0.2956, allocations: 56.36 kB / 474.3 MB, free: 16.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/0.2956, allocations: 8.359 kB / 474.3 MB, free: 16.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.2957, allocations: 8.812 kB / 474.3 MB, free: 16.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005251/0.2962, allocations: 462.2 kB / 474.8 MB, free: 16.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2962, allocations: 0 / 474.8 MB, free: 16.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004609/0.2967, allocations: 104.9 kB / 474.9 MB, free: 16.33 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.0008376/0.2975, allocations: 364.2 kB / 475.2 MB, free: 16.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006422/0.2982, allocations: 188 kB / 475.4 MB, free: 16.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.2982, allocations: 1.219 kB / 475.4 MB, free: 16.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002769/0.2985, allocations: 93.69 kB / 475.5 MB, free: 16.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008847/0.2994, allocations: 128.6 kB / 475.6 MB, free: 16.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.3009, allocations: 1.149 MB / 476.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.3013, allocations: 0.8893 MB / 477.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.3015, allocations: 40.14 kB / 477.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3015, allocations: 0 / 477.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of Templates: time 0.01118/0.3127, allocations: 6.476 MB / 484.2 MB, free: 12.73 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)