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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 114.2 kB / 17.08 MB, free: 5.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.001321, allocations: 191.7 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 245.7 MB, free: 4.215 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.3079/0.3079, allocations: 31.11 MB / 329 MB, free: 3.281 MB / 254.1 MB " [Timeout remaining time 180] 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=10000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LookupFunctions") translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LookupFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 68.78 kB / 456.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1187, allocations: 56.35 MB / 0.5004 GB, free: 6.203 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.009002/0.1277, allocations: 6.984 MB / 0.5072 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003772/0.1315, allocations: 2.165 MB / 0.5093 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006069/0.1322, allocations: 19.88 kB / 0.5094 GB, free: 13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005003/0.1327, allocations: 178.5 kB / 0.5095 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004304/0.1331, allocations: 130.8 kB / 0.5097 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007057/0.1339, allocations: 336.5 kB / 0.51 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008156/0.1347, allocations: 0.7223 MB / 0.5107 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005725/0.1353, allocations: 372.3 kB / 0.511 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002749/0.1356, allocations: 230.8 kB / 0.5113 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.1358, allocations: 246.4 kB / 0.5115 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.266e-05/0.1359, allocations: 44 kB / 0.5115 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/0.1361, allocations: 91.97 kB / 0.5116 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001768/0.1363, allocations: 147.3 kB / 0.5118 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000263/0.1366, allocations: 290 kB / 0.512 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008236/0.1374, allocations: 0.6414 MB / 0.5127 GB, free: 9.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1374, allocations: 0 / 0.5127 GB, free: 9.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1374, allocations: 0 / 0.5127 GB, free: 9.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.1374, allocations: 4 kB / 0.5127 GB, free: 9.598 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.001628/0.1391, allocations: 1.015 MB / 0.5137 GB, free: 8.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.1391, allocations: 8.031 kB / 0.5137 GB, free: 8.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000286/0.1394, allocations: 103.4 kB / 0.5138 GB, free: 8.422 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008154/0.1402, allocations: 0.5072 MB / 0.5143 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.1403, allocations: 29 kB / 0.5143 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.328e-05/0.1403, allocations: 28 kB / 0.5143 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008931/0.1412, allocations: 475.5 kB / 0.5148 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.1413, allocations: 0 / 0.5148 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.61e-05/0.1413, allocations: 31.86 kB / 0.5148 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.1413, allocations: 8 kB / 0.5148 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007224/0.1421, allocations: 258.1 kB / 0.5151 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.1439, allocations: 1.119 MB / 0.5162 GB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007418/0.1447, allocations: 177 kB / 0.5163 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002639/0.145, allocations: 77.67 kB / 0.5164 GB, free: 5.559 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.294e-05/0.145, allocations: 4 kB / 0.5164 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.145, allocations: 34.56 kB / 0.5164 GB, free: 5.512 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.974e-06/0.1451, allocations: 0 / 0.5164 GB, free: 5.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.001032/0.1461, allocations: 305.3 kB / 0.5167 GB, free: 5.207 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002846/0.1464, allocations: 444.9 kB / 0.5171 GB, free: 4.668 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008049/0.1472, allocations: 0.6332 MB / 0.5178 GB, free: 4.027 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.326e-05/0.1472, allocations: 33.7 kB / 0.5178 GB, free: 3.988 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002878/0.1475, allocations: 320.5 kB / 0.5181 GB, free: 3.668 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.153e-05/0.1476, allocations: 39.64 kB / 0.5181 GB, free: 3.629 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.1477, allocations: 57.66 kB / 0.5182 GB, free: 3.566 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.1479, allocations: 358.8 kB / 0.5185 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.1482, allocations: 67.94 kB / 0.5186 GB, free: 3.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/0.1486, allocations: 190.5 kB / 0.5188 GB, free: 2.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005396/0.1491, allocations: 166.5 kB / 0.5189 GB, free: 2.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1492, allocations: 0 / 0.5189 GB, free: 2.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006934/0.1499, allocations: 245.2 kB / 0.5192 GB, free: 2.484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.1499, allocations: 8 kB / 0.5192 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.1499, allocations: 0 / 0.5192 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.1499, allocations: 7.969 kB / 0.5192 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.1502, allocations: 43.89 kB / 0.5192 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.1502, allocations: 4 kB / 0.5192 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/0.1506, allocations: 47.84 kB / 0.5193 GB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.1506, allocations: 4.312 kB / 0.5193 GB, free: 2.371 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.0002392/0.1508, allocations: 182.4 kB / 0.5195 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.1509, allocations: 63.61 kB / 0.5195 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005263/0.1515, allocations: 190.7 kB / 0.5197 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.1515, allocations: 3.938 kB / 0.5197 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.1515, allocations: 4 kB / 0.5197 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1515, allocations: 3.984 kB / 0.5197 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006306/0.1522, allocations: 473.2 kB / 0.5202 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1522, allocations: 3.938 kB / 0.5202 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002009/0.1524, allocations: 39.95 kB / 0.5202 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.1524, allocations: 0 / 0.5202 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.1524, allocations: 0 / 0.5202 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.554e-06/0.1524, allocations: 7.938 kB / 0.5202 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1524, allocations: 0 / 0.5202 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007174/0.1531, allocations: 402.3 kB / 0.5206 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.1534, allocations: 184.5 kB / 0.5208 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.672e-05/0.1534, allocations: 4 kB / 0.5208 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003625/0.1538, allocations: 39.89 kB / 0.5208 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.272e-05/0.1539, allocations: 7.984 kB / 0.5208 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.1539, allocations: 12 kB / 0.5208 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005609/0.1545, allocations: 459 kB / 0.5213 GB, free: 244 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1545, allocations: 0 / 0.5213 GB, free: 244 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004229/0.1549, allocations: 103.8 kB / 0.5214 GB, free: 140 kB / 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.001333/0.1562, allocations: 372.8 kB / 0.5217 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006422/0.1569, allocations: 159.8 kB / 0.5219 GB, free: 15.76 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.1569, allocations: 4 kB / 0.5219 GB, free: 15.76 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002909/0.1572, allocations: 87.98 kB / 0.522 GB, free: 15.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000817/0.158, allocations: 132.3 kB / 0.5221 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.1597, allocations: 0.9083 MB / 0.523 GB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006232/0.1604, allocations: 0.8893 MB / 0.5239 GB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.1605, allocations: 43.42 kB / 0.5239 GB, free: 13.64 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1605, allocations: 0 / 0.5239 GB, free: 13.64 MB / 398.1 MB Notification: Performance of Templates: time 0.01136/0.1719, allocations: 6.605 MB / 0.5303 GB, free: 7.086 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.199921327177435] Failed to read output from testmodel.py, exit status != 0: 0.1786338249221444 0.19310948800000002 0.052539874 Calling exit ...