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.001384/0.001384, allocations: 108 kB / 15.61 MB, free: 152 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.00134/0.00134, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.337/1.337, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2744/0.2744, allocations: 31.13 MB / 321.5 MB, free: 4.305 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 63.89 kB / 388.9 MB, free: 2.441 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2792, allocations: 56.35 MB / 445.2 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.00807/0.2873, allocations: 6.976 MB / 452.2 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005017/0.2924, allocations: 2.163 MB / 454.4 MB, free: 28.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001709/0.2941, allocations: 21.12 kB / 454.4 MB, free: 28.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007889/0.295, allocations: 161.4 kB / 454.6 MB, free: 28.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006971/0.2957, allocations: 142.8 kB / 454.7 MB, free: 28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009317/0.2967, allocations: 329.7 kB / 455 MB, free: 27.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009834/0.2977, allocations: 0.7167 MB / 455.7 MB, free: 27.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007599/0.2984, allocations: 359.8 kB / 456.1 MB, free: 27.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003751/0.2988, allocations: 230.6 kB / 456.3 MB, free: 27.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003343/0.2992, allocations: 245.9 kB / 456.6 MB, free: 26.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001391/0.2993, allocations: 44.56 kB / 456.6 MB, free: 26.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000278/0.2996, allocations: 88.97 kB / 456.7 MB, free: 26.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001983/0.2998, allocations: 148.7 kB / 456.8 MB, free: 26.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003224/0.3002, allocations: 288.3 kB / 457.1 MB, free: 26.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009024/0.3011, allocations: 0.6135 MB / 457.7 MB, free: 26.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3011, allocations: 0 / 457.7 MB, free: 26.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3011, allocations: 0 / 457.7 MB, free: 26.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.686e-05/0.3011, allocations: 0 / 457.7 MB, free: 26.38 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.001793/0.3029, allocations: 1.003 MB / 458.7 MB, free: 25.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.303, allocations: 9.312 kB / 458.7 MB, free: 25.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002825/0.3033, allocations: 98.27 kB / 458.8 MB, free: 25.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005565/0.3038, allocations: 496.2 kB / 459.3 MB, free: 25.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.3039, allocations: 28.03 kB / 459.3 MB, free: 25.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.357e-05/0.3039, allocations: 34.81 kB / 459.4 MB, free: 25.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007479/0.3047, allocations: 472.4 kB / 459.8 MB, free: 24.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3047, allocations: 0 / 459.8 MB, free: 24.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.707e-05/0.3047, allocations: 20.25 kB / 459.9 MB, free: 24.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.3048, allocations: 8.75 kB / 459.9 MB, free: 24.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000616/0.3054, allocations: 268.9 kB / 460.1 MB, free: 24.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.3071, allocations: 1.13 MB / 461.3 MB, free: 24.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000691/0.3078, allocations: 186 kB / 461.4 MB, free: 24.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002435/0.308, allocations: 75.52 kB / 461.5 MB, free: 24.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.3081, allocations: 4.484 kB / 461.5 MB, free: 24.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.3081, allocations: 41.88 kB / 461.6 MB, free: 23.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.3081, allocations: 7.938 kB / 461.6 MB, free: 23.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009047/0.309, allocations: 291.5 kB / 461.9 MB, free: 23.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.274e-05/0.3091, allocations: 447.2 kB / 462.3 MB, free: 23.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000712/0.3099, allocations: 0.6347 MB / 462.9 MB, free: 23.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.3099, allocations: 32.11 kB / 463 MB, free: 23.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.3101, allocations: 315.4 kB / 463.3 MB, free: 22.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.121e-05/0.3101, allocations: 38.83 kB / 463.3 MB, free: 22.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.3103, allocations: 56.88 kB / 463.4 MB, free: 22.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.3104, allocations: 357.4 kB / 463.7 MB, free: 22.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.3106, allocations: 70.97 kB / 463.8 MB, free: 22.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003174/0.3109, allocations: 195.9 kB / 464 MB, free: 22.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004793/0.3114, allocations: 154.6 kB / 464.1 MB, free: 22.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.3114, allocations: 0 / 464.1 MB, free: 22.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006366/0.3121, allocations: 250.7 kB / 464.4 MB, free: 22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.3121, allocations: 5.156 kB / 464.4 MB, free: 22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3121, allocations: 5 kB / 464.4 MB, free: 22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.3122, allocations: 5.844 kB / 464.4 MB, free: 21.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.3124, allocations: 37.91 kB / 464.4 MB, free: 21.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.3124, allocations: 2.016 kB / 464.4 MB, free: 21.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/0.3128, allocations: 48.72 kB / 464.5 MB, free: 21.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.3128, allocations: 4.906 kB / 464.5 MB, free: 21.98 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.0001916/0.313, allocations: 182.2 kB / 464.7 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.917e-05/0.3131, allocations: 59.22 kB / 464.7 MB, free: 21.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004856/0.3136, allocations: 186.1 kB / 464.9 MB, free: 21.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3136, allocations: 9.438 kB / 464.9 MB, free: 21.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3136, allocations: 1.531 kB / 464.9 MB, free: 21.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3136, allocations: 4.828 kB / 464.9 MB, free: 21.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006023/0.3143, allocations: 475.3 kB / 465.4 MB, free: 21.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3143, allocations: 0.9688 kB / 465.4 MB, free: 21.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002021/0.3145, allocations: 35.86 kB / 465.4 MB, free: 21.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.3145, allocations: 0.9688 kB / 465.4 MB, free: 21.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.3145, allocations: 3.969 kB / 465.4 MB, free: 21.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3145, allocations: 4.969 kB / 465.4 MB, free: 21.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3145, allocations: 4 kB / 465.4 MB, free: 21.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006222/0.3152, allocations: 402.8 kB / 465.8 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.3154, allocations: 171 kB / 466 MB, free: 20.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.193e-05/0.3154, allocations: 8.141 kB / 466 MB, free: 20.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003615/0.3158, allocations: 45.78 kB / 466 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.607e-05/0.3159, allocations: 8.281 kB / 466 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.3159, allocations: 3.578 kB / 466 MB, free: 20.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005687/0.3165, allocations: 462.3 kB / 466.5 MB, free: 20.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3165, allocations: 1.031 kB / 466.5 MB, free: 20.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004458/0.3169, allocations: 107.9 kB / 466.6 MB, free: 20.74 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.0007903/0.3177, allocations: 360.8 kB / 467 MB, free: 20.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006322/0.3184, allocations: 176.8 kB / 467.1 MB, free: 20.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3184, allocations: 1.156 kB / 467.1 MB, free: 20.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002586/0.3186, allocations: 78.59 kB / 467.2 MB, free: 20.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008864/0.3195, allocations: 140 kB / 467.3 MB, free: 20.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.321, allocations: 0.8766 MB / 468.2 MB, free: 19.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/0.3214, allocations: 0.8902 MB / 469.1 MB, free: 19.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002752/0.3217, allocations: 56.95 kB / 469.2 MB, free: 19.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.3218, allocations: 40.88 kB / 469.2 MB, free: 19.22 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3218, allocations: 1.125 kB / 469.2 MB, free: 19.22 MB / 350.1 MB Notification: Performance of Templates: time 0.01423/0.3361, allocations: 6.406 MB / 475.6 MB, free: 17.76 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)