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.001022/0.001022, allocations: 114.1 kB / 16.42 MB, free: 6.473 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.001016/0.001016, allocations: 186.6 kB / 17.35 MB, free: 5.75 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1685/0.1685, allocations: 31.17 MB / 322.4 MB, free: 212 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.89 kB / 447.4 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08592/0.0871, allocations: 56.35 MB / 0.492 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007679/0.09481, allocations: 6.99 MB / 0.4988 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003442/0.09827, allocations: 2.162 MB / 0.5009 GB, free: 216 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006306/0.09892, allocations: 23.88 kB / 0.5009 GB, free: 192 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000457/0.09939, allocations: 174.5 kB / 0.5011 GB, free: 16 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1765/0.2759, allocations: 143.2 kB / 0.5012 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008712/0.2768, allocations: 327 kB / 0.5015 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007875/0.2776, allocations: 0.7224 MB / 0.5022 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000543/0.2782, allocations: 359.8 kB / 0.5026 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002848/0.2785, allocations: 246 kB / 0.5028 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000215/0.2787, allocations: 247.3 kB / 0.503 GB, free: 5.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.125e-05/0.2788, allocations: 44 kB / 0.5031 GB, free: 5.609 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.279, allocations: 89.42 kB / 0.5032 GB, free: 5.609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.2791, allocations: 151.8 kB / 0.5033 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.2793, allocations: 291.7 kB / 0.5036 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006395/0.28, allocations: 0.6365 MB / 0.5042 GB, free: 5.336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.28, allocations: 0 / 0.5042 GB, free: 5.336 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.28, allocations: 3.062 kB / 0.5042 GB, free: 5.336 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.208e-05/0.28, allocations: 1.688 kB / 0.5042 GB, free: 5.336 MB / 382.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.001403/0.2815, allocations: 0.9963 MB / 0.5052 GB, free: 4.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.2815, allocations: 9.25 kB / 0.5052 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002967/0.2818, allocations: 97.23 kB / 0.5053 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006716/0.2825, allocations: 0.4956 MB / 0.5058 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.2825, allocations: 28.16 kB / 0.5058 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.654e-05/0.2826, allocations: 34 kB / 0.5058 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007967/0.2834, allocations: 473.3 kB / 0.5063 GB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.2834, allocations: 0 / 0.5063 GB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.012e-05/0.2834, allocations: 17.44 kB / 0.5063 GB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.2835, allocations: 12.91 kB / 0.5063 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007192/0.2842, allocations: 256.2 kB / 0.5066 GB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.2859, allocations: 1.11 MB / 0.5076 GB, free: 3.758 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006916/0.2866, allocations: 180.9 kB / 0.5078 GB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.2869, allocations: 79.42 kB / 0.5079 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.2869, allocations: 5.344 kB / 0.5079 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.287, allocations: 42.09 kB / 0.5079 GB, free: 3.656 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.287, allocations: 4.625 kB / 0.5079 GB, free: 3.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009433/0.2879, allocations: 292.9 kB / 0.5082 GB, free: 3.586 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.288, allocations: 446.4 kB / 0.5087 GB, free: 3.055 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007247/0.2887, allocations: 0.636 MB / 0.5093 GB, free: 2.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.2887, allocations: 31.05 kB / 0.5093 GB, free: 2.898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.2889, allocations: 315.6 kB / 0.5096 GB, free: 2.746 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.808e-05/0.289, allocations: 41.38 kB / 0.5096 GB, free: 2.723 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.472e-05/0.2891, allocations: 51.84 kB / 0.5097 GB, free: 2.703 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.569e-05/0.2891, allocations: 360.6 kB / 0.51 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.2894, allocations: 70.03 kB / 0.5101 GB, free: 2.387 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.2897, allocations: 199.3 kB / 0.5103 GB, free: 2.242 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004976/0.2902, allocations: 160.3 kB / 0.5104 GB, free: 2.215 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2903, allocations: 0 / 0.5104 GB, free: 2.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000657/0.2909, allocations: 247.3 kB / 0.5107 GB, free: 2.156 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.2909, allocations: 5.844 kB / 0.5107 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.291, allocations: 1.312 kB / 0.5107 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.291, allocations: 1.156 kB / 0.5107 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.2912, allocations: 39.61 kB / 0.5107 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.2913, allocations: 5.75 kB / 0.5107 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003651/0.2916, allocations: 43.67 kB / 0.5108 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.2917, allocations: 9.422 kB / 0.5108 GB, free: 2.148 MB / 382.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.0001879/0.2919, allocations: 182.1 kB / 0.511 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.292, allocations: 60.55 kB / 0.511 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004937/0.2925, allocations: 191.4 kB / 0.5112 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2925, allocations: 1.906 kB / 0.5112 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2925, allocations: 1.188 kB / 0.5112 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000202/0.2927, allocations: 179 kB / 0.5114 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.885e-05/0.2928, allocations: 3.156 kB / 0.5114 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003847/0.2932, allocations: 42.41 kB / 0.5114 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.81e-05/0.2932, allocations: 9.062 kB / 0.5114 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006828/0.2939, allocations: 353.4 kB / 0.5118 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006278/0.2946, allocations: 491.9 kB / 0.5122 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002642/0.2948, allocations: 81.83 kB / 0.5123 GB, free: 1.312 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005092/0.2953, allocations: 465 kB / 0.5128 GB, free: 1.219 MB / 382.1 MB Notification: Performance of Backend: time 4.81e-07/0.2954, allocations: 0 / 0.5128 GB, free: 1.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.297, allocations: 0.5191 MB / 0.5133 GB, free: 1.074 MB / 382.1 MB Notification: Performance of SimCode: time 0.001508/0.2985, allocations: 1.374 MB / 0.5146 GB, free: 160 kB / 382.1 MB Notification: Performance of Templates: time 0.01547/0.314, allocations: 8.315 MB / 0.5227 GB, free: 14.33 MB / 398.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)