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.001148/0.001148, allocations: 107.8 kB / 16.41 MB, free: 6.449 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.00128/0.00128, allocations: 192.3 kB / 17.35 MB, free: 5.707 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.354/1.354, allocations: 222.9 MB / 241.1 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.167/0.167, allocations: 31.13 MB / 322.3 MB, free: 60 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 55.91 kB / 447.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1155, allocations: 56.36 MB / 0.4919 GB, free: 9.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008293/0.1238, allocations: 6.972 MB / 0.4987 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003587/0.1274, allocations: 2.185 MB / 0.5009 GB, free: 132 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007152/0.1281, allocations: 19.88 kB / 0.5009 GB, free: 112 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2559/0.3841, allocations: 166.6 kB / 0.501 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007021/0.3849, allocations: 142.4 kB / 0.5012 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008742/0.3857, allocations: 334.8 kB / 0.5015 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007355/0.3865, allocations: 0.7183 MB / 0.5022 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004867/0.387, allocations: 361.1 kB / 0.5025 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000247/0.3872, allocations: 243.6 kB / 0.5028 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.3874, allocations: 242 kB / 0.503 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.142e-05/0.3875, allocations: 45.25 kB / 0.5031 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001739/0.3877, allocations: 89.56 kB / 0.5031 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.3878, allocations: 152.7 kB / 0.5033 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001753/0.388, allocations: 287.6 kB / 0.5036 GB, free: 5.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006387/0.3887, allocations: 0.6449 MB / 0.5042 GB, free: 5.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3887, allocations: 1 kB / 0.5042 GB, free: 5.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3887, allocations: 0.6562 kB / 0.5042 GB, free: 5.297 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.3887, allocations: 0.625 kB / 0.5042 GB, free: 5.297 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.001235/0.3899, allocations: 1.028 MB / 0.5052 GB, free: 4.625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.39, allocations: 9.156 kB / 0.5052 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000263/0.3903, allocations: 101.1 kB / 0.5053 GB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006674/0.3909, allocations: 0.4977 MB / 0.5058 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.463e-05/0.391, allocations: 28.03 kB / 0.5058 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.169e-05/0.391, allocations: 38.31 kB / 0.5058 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007515/0.3918, allocations: 469.7 kB / 0.5063 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.3918, allocations: 0 / 0.5063 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.687e-05/0.3919, allocations: 16.81 kB / 0.5063 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.3919, allocations: 12.53 kB / 0.5063 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006994/0.3926, allocations: 253.9 kB / 0.5066 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.3945, allocations: 1.117 MB / 0.5077 GB, free: 3.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007727/0.3953, allocations: 180.9 kB / 0.5078 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002686/0.3955, allocations: 78.2 kB / 0.5079 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.3956, allocations: 8.875 kB / 0.5079 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.3956, allocations: 41.77 kB / 0.508 GB, free: 3.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.472e-06/0.3956, allocations: 0 / 0.508 GB, free: 3.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.001037/0.3967, allocations: 298.1 kB / 0.5082 GB, free: 3.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.3968, allocations: 444.8 kB / 0.5087 GB, free: 2.969 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008948/0.3977, allocations: 0.6338 MB / 0.5093 GB, free: 2.844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.3978, allocations: 32.89 kB / 0.5093 GB, free: 2.812 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.398, allocations: 316.3 kB / 0.5096 GB, free: 2.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.494e-05/0.398, allocations: 38.77 kB / 0.5096 GB, free: 2.637 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.3982, allocations: 61.19 kB / 0.5097 GB, free: 2.613 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.695e-05/0.3983, allocations: 360 kB / 0.5101 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002816/0.3986, allocations: 74.83 kB / 0.5101 GB, free: 2.293 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003394/0.3989, allocations: 191 kB / 0.5103 GB, free: 2.156 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005105/0.3994, allocations: 156.7 kB / 0.5105 GB, free: 2.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3994, allocations: 4 kB / 0.5105 GB, free: 2.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006486/0.4001, allocations: 248.5 kB / 0.5107 GB, free: 2.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.4001, allocations: 6.859 kB / 0.5107 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4001, allocations: 4 kB / 0.5107 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.4001, allocations: 5.188 kB / 0.5107 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002481/0.4004, allocations: 43.12 kB / 0.5108 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.4004, allocations: 5.031 kB / 0.5108 GB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.4008, allocations: 47.34 kB / 0.5108 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.4008, allocations: 5.375 kB / 0.5108 GB, free: 2.051 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.0001844/0.401, allocations: 189.2 kB / 0.511 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.4011, allocations: 61.3 kB / 0.511 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005199/0.4016, allocations: 190.4 kB / 0.5112 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.4016, allocations: 2.203 kB / 0.5112 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.4016, allocations: 0 / 0.5112 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002261/0.4019, allocations: 172.2 kB / 0.5114 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.008e-05/0.402, allocations: 6.969 kB / 0.5114 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003885/0.4023, allocations: 42.05 kB / 0.5114 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/0.4024, allocations: 15.94 kB / 0.5115 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007447/0.4032, allocations: 344 kB / 0.5118 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006586/0.4038, allocations: 496.2 kB / 0.5123 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002615/0.4041, allocations: 78.36 kB / 0.5123 GB, free: 1.219 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005182/0.4046, allocations: 468.8 kB / 0.5128 GB, free: 1.121 MB / 382.1 MB Notification: Performance of Backend: time 1.753e-06/0.4046, allocations: 0 / 0.5128 GB, free: 1.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001658/0.4063, allocations: 0.51 MB / 0.5133 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of SimCode: time 0.001648/0.408, allocations: 1.41 MB / 0.5147 GB, free: 24 kB / 382.1 MB Notification: Performance of Templates: time 0.01609/0.4241, allocations: 8.306 MB / 0.5228 GB, free: 14.16 MB / 398.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)