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.001372/0.001372, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001391/0.001391, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.364/1.364, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1723/0.1723, allocations: 31.13 MB / 322.2 MB, free: 156 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.22 kB / 389.5 MB, free: 38.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08527/0.08652, allocations: 56.38 MB / 445.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008218/0.09477, allocations: 6.974 MB / 452.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003842/0.09864, allocations: 2.161 MB / 455.1 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00072/0.09946, allocations: 23.88 kB / 455.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004573/0.09992, allocations: 162.6 kB / 455.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004256/0.1004, allocations: 146.8 kB / 455.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007141/0.1011, allocations: 322.4 kB / 455.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006582/0.1018, allocations: 0.7186 MB / 456.4 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005295/0.1023, allocations: 352.8 kB / 456.8 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002364/0.1025, allocations: 234.7 kB / 457 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.1028, allocations: 246.4 kB / 457.2 MB, free: 7.656 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.999e-05/0.1029, allocations: 44 kB / 457.3 MB, free: 7.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.103, allocations: 87.97 kB / 457.4 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001569/0.1032, allocations: 147.4 kB / 457.5 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002143/0.1034, allocations: 286 kB / 457.8 MB, free: 7.102 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005939/0.104, allocations: 0.6188 MB / 458.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.104, allocations: 0 / 458.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.104, allocations: 4 kB / 458.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.794e-06/0.1041, allocations: 0 / 458.4 MB, free: 6.477 MB / 334.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.001328/0.1054, allocations: 0.9924 MB / 459.4 MB, free: 5.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.1054, allocations: 12.03 kB / 459.4 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002698/0.1057, allocations: 98.89 kB / 459.5 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005821/0.1063, allocations: 490.8 kB / 460 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.085e-05/0.1063, allocations: 40.88 kB / 460 MB, free: 4.766 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.1064, allocations: 40 kB / 460.1 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007663/0.1072, allocations: 469.2 kB / 460.5 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.1072, allocations: 0 / 460.5 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.077e-05/0.1072, allocations: 19.94 kB / 460.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.1073, allocations: 8 kB / 460.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007044/0.108, allocations: 266 kB / 460.8 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.1097, allocations: 1.131 MB / 461.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007139/0.1104, allocations: 177.1 kB / 462.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002658/0.1107, allocations: 85.66 kB / 462.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.1107, allocations: 0 / 462.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.1108, allocations: 42.66 kB / 462.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.002e-06/0.1108, allocations: 0 / 462.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009617/0.1118, allocations: 300.6 kB / 462.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001897/0.112, allocations: 448.9 kB / 463 MB, free: 1.566 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007078/0.1127, allocations: 0.6293 MB / 463.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.024e-05/0.1127, allocations: 33.7 kB / 463.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002366/0.113, allocations: 323.9 kB / 464 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.316e-05/0.113, allocations: 31.55 kB / 464 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.1131, allocations: 53.52 kB / 464 MB, free: 488 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1133, allocations: 358.8 kB / 464.4 MB, free: 120 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000264/0.1135, allocations: 71.94 kB / 464.5 MB, free: 48 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003816/0.1139, allocations: 187.8 kB / 464.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005104/0.1144, allocations: 162.4 kB / 464.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1144, allocations: 3.938 kB / 464.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006761/0.1151, allocations: 244.9 kB / 465 MB, free: 15.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.1152, allocations: 8.094 kB / 465 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1152, allocations: 3.938 kB / 465.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.1152, allocations: 3.938 kB / 465.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.1155, allocations: 43.95 kB / 465.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.1155, allocations: 4 kB / 465.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003482/0.1158, allocations: 43.8 kB / 465.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.1159, allocations: 12 kB / 465.2 MB, free: 15.28 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.000208/0.1161, allocations: 179 kB / 465.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.1162, allocations: 59.25 kB / 465.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004971/0.1167, allocations: 186.7 kB / 465.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.1167, allocations: 7.938 kB / 465.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1167, allocations: 0 / 465.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1167, allocations: 4 kB / 465.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005354/0.1173, allocations: 473.2 kB / 466 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1173, allocations: 0 / 466 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.1175, allocations: 31.97 kB / 466.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.1175, allocations: 0 / 466.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.1176, allocations: 11.98 kB / 466.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.1176, allocations: 7.938 kB / 466.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1176, allocations: 0 / 466.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006619/0.1183, allocations: 405.8 kB / 466.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001874/0.1185, allocations: 168.2 kB / 466.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.663e-05/0.1185, allocations: 11.98 kB / 466.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/0.1189, allocations: 43.89 kB / 466.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/0.119, allocations: 11.98 kB / 466.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.119, allocations: 0 / 466.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004937/0.1195, allocations: 463 kB / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1195, allocations: 0 / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004195/0.1199, allocations: 107.6 kB / 467.3 MB, free: 13.05 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.0008065/0.1207, allocations: 359.6 kB / 467.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006244/0.1214, allocations: 171.8 kB / 467.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1214, allocations: 8 kB / 467.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002712/0.1217, allocations: 75.94 kB / 467.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008524/0.1225, allocations: 133 kB / 468 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.124, allocations: 0.9057 MB / 468.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.1245, allocations: 0.8856 MB / 469.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.1246, allocations: 51.41 kB / 469.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1246, allocations: 0 / 469.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Templates: time 0.008991/0.1336, allocations: 6.561 MB / 476.4 MB, free: 4.109 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)