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.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-main/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/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_dev_BusinessSimulation.Examples.LookupFunctions") translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 104.7 kB / 16.27 MB, free: 5.98 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.001931/0.001931, allocations: 196.2 kB / 17.2 MB, free: 5.609 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.457/1.457, allocations: 222.9 MB / 240.9 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1632/0.1632, allocations: 31.18 MB / 322.2 MB, free: 256 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 62.45 kB / 389.6 MB, free: 38.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1091, allocations: 56.38 MB / 446 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.009569/0.1187, allocations: 6.977 MB / 452.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003728/0.1225, allocations: 2.161 MB / 455.1 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007489/0.1232, allocations: 19.88 kB / 455.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005009/0.1237, allocations: 162.5 kB / 455.3 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00046/0.1243, allocations: 146.8 kB / 455.4 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007425/0.125, allocations: 326.3 kB / 455.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007428/0.1258, allocations: 0.7108 MB / 456.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005555/0.1263, allocations: 364.7 kB / 456.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002968/0.1267, allocations: 230.7 kB / 457 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002506/0.1269, allocations: 246.4 kB / 457.3 MB, free: 7.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.459e-05/0.127, allocations: 44 kB / 457.3 MB, free: 7.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001938/0.1272, allocations: 87.98 kB / 457.4 MB, free: 7.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001679/0.1274, allocations: 147.4 kB / 457.6 MB, free: 7.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002532/0.1276, allocations: 290 kB / 457.8 MB, free: 7.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006873/0.1283, allocations: 0.6188 MB / 458.5 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1283, allocations: 0 / 458.5 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1284, allocations: 0 / 458.5 MB, free: 6.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.1284, allocations: 4 kB / 458.5 MB, free: 6.559 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.001569/0.13, allocations: 0.9962 MB / 459.5 MB, free: 5.512 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.13, allocations: 8.031 kB / 459.5 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000314/0.1303, allocations: 106.9 kB / 459.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006431/0.131, allocations: 490.8 kB / 460 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.131, allocations: 25 kB / 460.1 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.99e-05/0.1311, allocations: 36 kB / 460.1 MB, free: 4.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000807/0.1319, allocations: 473.2 kB / 460.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.1319, allocations: 0 / 460.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.421e-05/0.132, allocations: 23.94 kB / 460.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.132, allocations: 12 kB / 460.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006984/0.1327, allocations: 258 kB / 460.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001801/0.1345, allocations: 1.127 MB / 462 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006893/0.1352, allocations: 181 kB / 462.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002384/0.1354, allocations: 85.66 kB / 462.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.1355, allocations: 4 kB / 462.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.1355, allocations: 38.56 kB / 462.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.462e-06/0.1355, allocations: 0 / 462.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009164/0.1365, allocations: 296.7 kB / 462.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002717/0.1367, allocations: 444.9 kB / 463 MB, free: 1.664 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007558/0.1375, allocations: 0.6371 MB / 463.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.1375, allocations: 29.7 kB / 463.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.1378, allocations: 319.9 kB / 464 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.119e-05/0.1378, allocations: 35.69 kB / 464 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.1379, allocations: 57.52 kB / 464.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.1381, allocations: 358.8 kB / 464.4 MB, free: 212 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002555/0.1383, allocations: 67.95 kB / 464.5 MB, free: 144 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.1387, allocations: 198.4 kB / 464.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004921/0.1392, allocations: 158.4 kB / 464.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1392, allocations: 4 kB / 464.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006453/0.1399, allocations: 244.9 kB / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.1399, allocations: 4 kB / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1399, allocations: 0 / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.1399, allocations: 7.938 kB / 465.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002432/0.1402, allocations: 43.91 kB / 465.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.1402, allocations: 3.984 kB / 465.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003353/0.1405, allocations: 51.83 kB / 465.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.1406, allocations: 4 kB / 465.2 MB, free: 15.37 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.0002754/0.1409, allocations: 179 kB / 465.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.141, allocations: 59.25 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005124/0.1415, allocations: 186.7 kB / 465.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.1415, allocations: 7.938 kB / 465.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.1415, allocations: 0 / 465.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.1415, allocations: 0 / 465.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005707/0.1421, allocations: 473.3 kB / 466.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.1421, allocations: 0 / 466.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001998/0.1423, allocations: 31.97 kB / 466.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.1423, allocations: 0 / 466.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.1424, allocations: 11.98 kB / 466.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.1424, allocations: 3.938 kB / 466.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1424, allocations: 7.938 kB / 466.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006692/0.1431, allocations: 393.9 kB / 466.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002017/0.1433, allocations: 176.2 kB / 466.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.153e-05/0.1433, allocations: 8 kB / 466.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003635/0.1437, allocations: 43.88 kB / 466.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.822e-05/0.1438, allocations: 8 kB / 466.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.1438, allocations: 8.219 kB / 466.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005097/0.1443, allocations: 455 kB / 467.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1443, allocations: 0 / 467.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004299/0.1448, allocations: 111.7 kB / 467.3 MB, free: 13.14 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.0008948/0.1457, allocations: 363.4 kB / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006323/0.1463, allocations: 179.7 kB / 467.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.1463, allocations: 4 kB / 467.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.1466, allocations: 83.88 kB / 467.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008514/0.1474, allocations: 134.3 kB / 468.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/0.149, allocations: 0.9097 MB / 469 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.1495, allocations: 0.8855 MB / 469.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.1496, allocations: 39.42 kB / 469.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1496, allocations: 4 kB / 469.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of Templates: time 0.01026/0.1599, allocations: 6.554 MB / 476.5 MB, free: 4.137 MB / 350.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.makefile (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=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1)