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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002288/0.002288, allocations: 93.47 kB / 19.45 MB, free: 336 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002725/0.002725, allocations: 169.2 kB / 22.76 MB, free: 1.664 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.651/1.651, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.1941/0.1941, allocations: 24.12 MB / 283.7 MB, free: 5.301 MB / 266.7 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions") translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 360.5 MB, free: 4.359 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.334e-05/3.48e-05, allocations: 2.312 kB / 360.5 MB, free: 4.355 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.0103/0.01034, allocations: 6.579 MB / 367 MB, free: 13.75 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.005099/0.01544, allocations: 2.377 MB / 369.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001324/0.01676, allocations: 31.75 kB / 369.4 MB, free: 11.33 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006042/0.01737, allocations: 178.4 kB / 369.6 MB, free: 11.16 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007219/0.01809, allocations: 194.5 kB / 369.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009157/0.019, allocations: 339 kB / 370.1 MB, free: 10.63 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009413/0.01994, allocations: 0.7379 MB / 370.9 MB, free: 9.895 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006334/0.02058, allocations: 237 kB / 371.1 MB, free: 9.66 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005074/0.02108, allocations: 350.9 kB / 371.5 MB, free: 9.316 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002587/0.02134, allocations: 167.3 kB / 371.6 MB, free: 9.152 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.02144, allocations: 44 kB / 371.7 MB, free: 9.109 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002153/0.02166, allocations: 83.92 kB / 371.7 MB, free: 9.027 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001933/0.02185, allocations: 151.3 kB / 371.9 MB, free: 8.879 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002129/0.02207, allocations: 167.4 kB / 372.1 MB, free: 8.715 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000913/0.02298, allocations: 0.65 MB / 372.7 MB, free: 8.062 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.02298, allocations: 0 / 372.7 MB, free: 8.062 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.02299, allocations: 0 / 372.7 MB, free: 8.062 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.023, allocations: 0 / 372.7 MB, free: 8.062 MB / 346.7 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.001784/0.02478, allocations: 1.071 MB / 373.8 MB, free: 6.953 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.02483, allocations: 12.73 kB / 373.8 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003847/0.02521, allocations: 139.3 kB / 373.9 MB, free: 6.805 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007903/0.026, allocations: 447.1 kB / 374.4 MB, free: 6.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.213e-05/0.02604, allocations: 29 kB / 374.4 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.504e-05/0.02611, allocations: 40 kB / 374.4 MB, free: 6.273 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.02727, allocations: 0.8579 MB / 375.3 MB, free: 5.258 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.02729, allocations: 0 / 375.3 MB, free: 5.258 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.172e-05/0.02734, allocations: 23.98 kB / 375.3 MB, free: 5.234 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.02735, allocations: 8 kB / 375.3 MB, free: 5.227 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006368/0.02799, allocations: 230.4 kB / 375.5 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.03007, allocations: 1.137 MB / 376.7 MB, free: 3.824 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007312/0.03081, allocations: 178 kB / 376.8 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.031, allocations: 67.34 kB / 376.9 MB, free: 3.551 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.03103, allocations: 4 kB / 376.9 MB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/0.03107, allocations: 45.38 kB / 377 MB, free: 3.492 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.273e-06/0.03107, allocations: 4 kB / 377 MB, free: 3.488 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008564/0.03193, allocations: 269.3 kB / 377.2 MB, free: 3.219 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002996/0.03223, allocations: 444.9 kB / 377.7 MB, free: 2.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.0333, allocations: 0.7222 MB / 378.4 MB, free: 1.938 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.03334, allocations: 29.7 kB / 378.4 MB, free: 1.902 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003625/0.0337, allocations: 395.2 kB / 378.8 MB, free: 1.508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.583e-05/0.03375, allocations: 39.83 kB / 378.8 MB, free: 1.469 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.03388, allocations: 67.2 kB / 378.9 MB, free: 1.395 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003428/0.03422, allocations: 0.5625 MB / 379.5 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.03444, allocations: 55.97 kB / 379.5 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006028/0.03505, allocations: 0.5805 MB / 380.1 MB, free: 28 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004461/0.03549, allocations: 143.1 kB / 380.2 MB, free: 15.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.0355, allocations: 0 / 380.2 MB, free: 15.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006083/0.0361, allocations: 233.2 kB / 380.5 MB, free: 15.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.03612, allocations: 12.03 kB / 380.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.03613, allocations: 0 / 380.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.03614, allocations: 0 / 380.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.03639, allocations: 35.91 kB / 380.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.0364, allocations: 4 kB / 380.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.03669, allocations: 31.92 kB / 380.6 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.03671, allocations: 7.938 kB / 380.6 MB, free: 15.55 MB / 362.7 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.0002449/0.03696, allocations: 208.5 kB / 380.8 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.03708, allocations: 67.62 kB / 380.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004912/0.03757, allocations: 174.9 kB / 381 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.03758, allocations: 4 kB / 381 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.03759, allocations: 4 kB / 381 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.03759, allocations: 0 / 381 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006742/0.03826, allocations: 452.3 kB / 381.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.03827, allocations: 0 / 381.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.03846, allocations: 23.98 kB / 381.5 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.636e-06/0.03847, allocations: 8 kB / 381.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.03848, allocations: 3.984 kB / 381.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.03849, allocations: 0 / 381.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.03849, allocations: 0 / 381.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000697/0.03918, allocations: 490.5 kB / 382 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002551/0.03944, allocations: 97.5 kB / 382.1 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.164e-05/0.0395, allocations: 4 kB / 382.1 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003054/0.03981, allocations: 27.97 kB / 382.1 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.003e-05/0.03987, allocations: 7.984 kB / 382.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.03988, allocations: 7.984 kB / 382.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006194/0.0405, allocations: 483 kB / 382.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0405, allocations: 0 / 382.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004289/0.04093, allocations: 103.7 kB / 382.7 MB, free: 13.36 MB / 362.7 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.002511/0.04344, allocations: 398.1 kB / 383.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000541/0.04398, allocations: 155.5 kB / 383.2 MB, free: 12.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.04399, allocations: 4 kB / 383.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002368/0.04422, allocations: 75.59 kB / 383.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008598/0.04508, allocations: 147.1 kB / 383.4 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/0.04676, allocations: 0.8671 MB / 384.3 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.0471, allocations: 292 kB / 384.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002403/0.04734, allocations: 67.45 kB / 384.7 MB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.04745, allocations: 40.5 kB / 384.7 MB, free: 11.44 MB / 362.7 MB Notification: Performance of SimCode: time 6.92e-07/0.04745, allocations: 0 / 384.7 MB, free: 11.44 MB / 362.7 MB Notification: Performance of Templates: time 0.01545/0.0629, allocations: 7.188 MB / 391.9 MB, free: 4.438 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.makefile [Timeout 660] (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=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.1467369119636714]