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.007012/0.007012, allocations: 102.3 kB / 15.73 MB, free: 6.055 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.001189/0.001189, allocations: 191.5 kB / 16.67 MB, free: 5.969 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.243/1.243, allocations: 222.9 MB / 240.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1622/0.1622, allocations: 31.17 MB / 321.7 MB, free: 200 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001444, allocations: 63.91 kB / 446.7 MB, free: 1.773 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1063, allocations: 56.36 MB / 0.4913 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007653/0.114, allocations: 6.983 MB / 0.4981 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003444/0.1175, allocations: 2.177 MB / 0.5002 GB, free: 184 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006632/0.1181, allocations: 23.88 kB / 0.5003 GB, free: 160 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2068/0.325, allocations: 162 kB / 0.5004 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008168/0.3259, allocations: 148.7 kB / 0.5005 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008121/0.3267, allocations: 333.9 kB / 0.5009 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006518/0.3274, allocations: 0.7193 MB / 0.5016 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005273/0.3279, allocations: 361 kB / 0.5019 GB, free: 5.609 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.3282, allocations: 239.1 kB / 0.5021 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002049/0.3284, allocations: 253.1 kB / 0.5024 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.469e-05/0.3285, allocations: 45.5 kB / 0.5024 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.3287, allocations: 85.34 kB / 0.5025 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001377/0.3289, allocations: 146.5 kB / 0.5026 GB, free: 5.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002229/0.3291, allocations: 295.8 kB / 0.5029 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006109/0.3297, allocations: 0.6371 MB / 0.5036 GB, free: 5.207 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3297, allocations: 0.5312 kB / 0.5036 GB, free: 5.207 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3297, allocations: 0 / 0.5036 GB, free: 5.207 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.3298, allocations: 4 kB / 0.5036 GB, free: 5.207 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.001268/0.331, allocations: 0.9922 MB / 0.5045 GB, free: 4.566 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.3311, allocations: 9.625 kB / 0.5045 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000279/0.3314, allocations: 97.66 kB / 0.5046 GB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006235/0.332, allocations: 0.4947 MB / 0.5051 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.332, allocations: 27.88 kB / 0.5051 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.3321, allocations: 35.16 kB / 0.5052 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007405/0.3328, allocations: 468.1 kB / 0.5056 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.3328, allocations: 1.156 kB / 0.5056 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.811e-05/0.3329, allocations: 19.22 kB / 0.5056 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3329, allocations: 14.23 kB / 0.5057 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006856/0.3336, allocations: 254.7 kB / 0.5059 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.3353, allocations: 1.113 MB / 0.507 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000674/0.336, allocations: 177.8 kB / 0.5071 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002327/0.3362, allocations: 81.12 kB / 0.5072 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.3362, allocations: 7.953 kB / 0.5072 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.3363, allocations: 42.22 kB / 0.5073 GB, free: 3.523 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.453e-06/0.3363, allocations: 0 / 0.5073 GB, free: 3.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009258/0.3372, allocations: 292.1 kB / 0.5076 GB, free: 3.461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.086e-05/0.3373, allocations: 446.1 kB / 0.508 GB, free: 2.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006819/0.338, allocations: 0.6406 MB / 0.5086 GB, free: 2.801 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.338, allocations: 28.42 kB / 0.5086 GB, free: 2.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.3382, allocations: 313.7 kB / 0.5089 GB, free: 2.621 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.3382, allocations: 45.06 kB / 0.509 GB, free: 2.598 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.572e-05/0.3383, allocations: 51.16 kB / 0.509 GB, free: 2.578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.861e-05/0.3384, allocations: 360.9 kB / 0.5094 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002498/0.3387, allocations: 78.06 kB / 0.5094 GB, free: 2.254 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003134/0.339, allocations: 195 kB / 0.5096 GB, free: 2.109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000463/0.3395, allocations: 154.6 kB / 0.5098 GB, free: 2.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3395, allocations: 0.75 kB / 0.5098 GB, free: 2.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000603/0.3401, allocations: 243.7 kB / 0.51 GB, free: 2.027 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.3401, allocations: 11.47 kB / 0.51 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3401, allocations: 1.094 kB / 0.51 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.3401, allocations: 1.156 kB / 0.51 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002442/0.3404, allocations: 46.83 kB / 0.5101 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.3404, allocations: 2.141 kB / 0.5101 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003367/0.3408, allocations: 43.56 kB / 0.5101 GB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/0.3408, allocations: 5.109 kB / 0.5101 GB, free: 2.023 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.0001988/0.341, allocations: 184.1 kB / 0.5103 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.3411, allocations: 59.64 kB / 0.5103 GB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004809/0.3416, allocations: 190.8 kB / 0.5105 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3416, allocations: 1 kB / 0.5105 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3416, allocations: 1.797 kB / 0.5105 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.3416, allocations: 2.547 kB / 0.5105 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005834/0.3422, allocations: 480.8 kB / 0.511 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.3422, allocations: 2.125 kB / 0.511 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000202/0.3424, allocations: 35.47 kB / 0.511 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.3425, allocations: 1.094 kB / 0.511 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.3425, allocations: 6.688 kB / 0.511 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.3425, allocations: 5.5 kB / 0.511 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.3425, allocations: 0.5156 kB / 0.511 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005905/0.3431, allocations: 407.1 kB / 0.5114 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001785/0.3433, allocations: 161.8 kB / 0.5116 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.327e-05/0.3433, allocations: 11.91 kB / 0.5116 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003436/0.3437, allocations: 36.78 kB / 0.5116 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.618e-05/0.3437, allocations: 12.75 kB / 0.5116 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.3438, allocations: 4.172 kB / 0.5116 GB, free: 1.254 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004573/0.3442, allocations: 458.7 kB / 0.5121 GB, free: 1.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3442, allocations: 0 / 0.5121 GB, free: 1.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004091/0.3446, allocations: 107.2 kB / 0.5122 GB, free: 1.141 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.0007534/0.3454, allocations: 368.2 kB / 0.5125 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005757/0.346, allocations: 171 kB / 0.5127 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.346, allocations: 1.562 kB / 0.5127 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002553/0.3463, allocations: 81.86 kB / 0.5128 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007842/0.3471, allocations: 145.4 kB / 0.5129 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.3484, allocations: 0.8592 MB / 0.5138 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.3488, allocations: 0.8891 MB / 0.5146 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002181/0.349, allocations: 62.22 kB / 0.5147 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.3491, allocations: 39.44 kB / 0.5147 GB, free: 15.78 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3492, allocations: 4 kB / 0.5147 GB, free: 15.77 MB / 398.1 MB Notification: Performance of Templates: time 0.01274/0.3619, allocations: 6.438 MB / 0.521 GB, free: 14.69 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)