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.001878/0.001879, allocations: 110.5 kB / 16.41 MB, free: 6.496 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.002176/0.002176, allocations: 183 kB / 17.34 MB, free: 5.762 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.954/1.954, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1826/0.1826, allocations: 31.18 MB / 322.4 MB, free: 200 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 67.89 kB / 447.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1453, allocations: 56.35 MB / 0.4921 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.01079/0.1562, allocations: 6.984 MB / 0.4989 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005494/0.1617, allocations: 2.173 MB / 0.5011 GB, free: 16 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.3709/0.5327, allocations: 22.45 kB / 0.5011 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009092/0.5336, allocations: 168.3 kB / 0.5013 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007689/0.5345, allocations: 142 kB / 0.5014 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.5355, allocations: 337.4 kB / 0.5017 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001123/0.5366, allocations: 0.7224 MB / 0.5024 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006919/0.5374, allocations: 361 kB / 0.5028 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.5377, allocations: 242.5 kB / 0.503 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002358/0.538, allocations: 248.4 kB / 0.5032 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.5381, allocations: 44.97 kB / 0.5033 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002224/0.5383, allocations: 88.89 kB / 0.5034 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.5385, allocations: 148.8 kB / 0.5035 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002217/0.5387, allocations: 287 kB / 0.5038 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008066/0.5395, allocations: 0.6469 MB / 0.5044 GB, free: 5.129 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.5395, allocations: 1.188 kB / 0.5044 GB, free: 5.129 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5395, allocations: 0 / 0.5044 GB, free: 5.129 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.5396, allocations: 0 / 0.5044 GB, free: 5.129 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.001543/0.5411, allocations: 1.022 MB / 0.5054 GB, free: 4.461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.5412, allocations: 10.19 kB / 0.5054 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003972/0.5416, allocations: 95.73 kB / 0.5055 GB, free: 4.418 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008621/0.5424, allocations: 0.5035 MB / 0.506 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.806e-05/0.5425, allocations: 31.88 kB / 0.506 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.297e-05/0.5425, allocations: 35.66 kB / 0.5061 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008402/0.5434, allocations: 473 kB / 0.5065 GB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.5434, allocations: 0 / 0.5065 GB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.972e-05/0.5435, allocations: 17.89 kB / 0.5065 GB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.5435, allocations: 9.156 kB / 0.5065 GB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007014/0.5442, allocations: 254.7 kB / 0.5068 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.5462, allocations: 1.124 MB / 0.5079 GB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007044/0.5469, allocations: 178 kB / 0.508 GB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002363/0.5472, allocations: 79.14 kB / 0.5081 GB, free: 3.449 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.425e-05/0.5472, allocations: 4.578 kB / 0.5081 GB, free: 3.449 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.5472, allocations: 39.75 kB / 0.5082 GB, free: 3.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.5472, allocations: 4 kB / 0.5082 GB, free: 3.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.00108/0.5483, allocations: 297.3 kB / 0.5084 GB, free: 3.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.5485, allocations: 448.1 kB / 0.5089 GB, free: 2.809 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008569/0.5493, allocations: 0.6341 MB / 0.5095 GB, free: 2.684 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.5494, allocations: 36.92 kB / 0.5095 GB, free: 2.648 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002235/0.5496, allocations: 316.8 kB / 0.5098 GB, free: 2.496 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.645e-05/0.5496, allocations: 35.48 kB / 0.5099 GB, free: 2.473 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.5498, allocations: 59.33 kB / 0.5099 GB, free: 2.449 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.5499, allocations: 362 kB / 0.5103 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002565/0.5501, allocations: 66.25 kB / 0.5103 GB, free: 2.133 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003385/0.5505, allocations: 191.6 kB / 0.5105 GB, free: 1.996 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004696/0.551, allocations: 160.8 kB / 0.5107 GB, free: 1.969 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.551, allocations: 1.844 kB / 0.5107 GB, free: 1.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006917/0.5517, allocations: 248 kB / 0.5109 GB, free: 1.906 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.5517, allocations: 7.812 kB / 0.5109 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.5517, allocations: 3.891 kB / 0.5109 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.5518, allocations: 1.531 kB / 0.5109 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.552, allocations: 42.67 kB / 0.511 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.552, allocations: 1.984 kB / 0.511 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.5524, allocations: 51.16 kB / 0.511 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.5524, allocations: 6.031 kB / 0.511 GB, free: 1.895 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.0002229/0.5527, allocations: 186.2 kB / 0.5112 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.5528, allocations: 60.5 kB / 0.5113 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005136/0.5533, allocations: 188.6 kB / 0.5114 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.5533, allocations: 13.48 kB / 0.5114 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.5533, allocations: 1.375 kB / 0.5114 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.5533, allocations: 0.7031 kB / 0.5114 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007163/0.5541, allocations: 478.6 kB / 0.5119 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.5541, allocations: 1.156 kB / 0.5119 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002053/0.5543, allocations: 34.73 kB / 0.5119 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.5543, allocations: 5.797 kB / 0.5119 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.5543, allocations: 4.797 kB / 0.5119 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.5543, allocations: 0 / 0.5119 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.5543, allocations: 5.531 kB / 0.512 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005978/0.5549, allocations: 401.1 kB / 0.5123 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002145/0.5552, allocations: 172.8 kB / 0.5125 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.86e-05/0.5552, allocations: 2.844 kB / 0.5125 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.5556, allocations: 41.23 kB / 0.5125 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.075e-05/0.5557, allocations: 9.656 kB / 0.5126 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.5557, allocations: 6.984 kB / 0.5126 GB, free: 1.121 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005925/0.5563, allocations: 461.2 kB / 0.513 GB, free: 1.031 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5563, allocations: 3.938 kB / 0.513 GB, free: 1.027 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000478/0.5568, allocations: 107.6 kB / 0.5131 GB, free: 1 MB / 382.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.001297/0.5581, allocations: 358.5 kB / 0.5134 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006069/0.5587, allocations: 170.4 kB / 0.5136 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5587, allocations: 1 kB / 0.5136 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002651/0.559, allocations: 85.02 kB / 0.5137 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008184/0.5598, allocations: 140.8 kB / 0.5138 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.5614, allocations: 0.9186 MB / 0.5147 GB, free: 328 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005255/0.562, allocations: 0.8864 MB / 0.5156 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.5621, allocations: 47.91 kB / 0.5156 GB, free: 15.61 MB / 398.1 MB Notification: Performance of SimCode: time 3.7e-07/0.5621, allocations: 0 / 0.5156 GB, free: 15.61 MB / 398.1 MB Notification: Performance of Templates: time 0.01477/0.5769, allocations: 6.619 MB / 0.5221 GB, free: 14.11 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)