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: "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_LookupFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_LookupFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006181/0.006181, allocations: 102 kB / 15.73 MB, free: 6.438 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.001592/0.001592, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2685/0.2685, allocations: 31.13 MB / 321.7 MB, free: 4.219 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 64.03 kB / 446.2 MB, free: 30.53 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09735/0.09857, allocations: 56.37 MB / 0.4908 GB, free: 7.66 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.00778/0.1064, allocations: 6.975 MB / 0.4976 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003751/0.1102, allocations: 2.165 MB / 0.4997 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.1113, allocations: 19.88 kB / 0.4997 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000536/0.1119, allocations: 174.5 kB / 0.4999 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005069/0.1124, allocations: 150.8 kB / 0.5 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007549/0.1132, allocations: 331 kB / 0.5003 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006941/0.1139, allocations: 0.7339 MB / 0.5011 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005336/0.1145, allocations: 363.2 kB / 0.5014 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002898/0.1148, allocations: 242.8 kB / 0.5016 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002485/0.115, allocations: 246.4 kB / 0.5019 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.199e-05/0.1151, allocations: 44 kB / 0.5019 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001975/0.1153, allocations: 83.97 kB / 0.502 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.1155, allocations: 155.3 kB / 0.5021 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.1157, allocations: 286 kB / 0.5024 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006442/0.1164, allocations: 0.639 MB / 0.503 GB, free: 11.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1164, allocations: 0 / 0.503 GB, free: 11.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1164, allocations: 0 / 0.503 GB, free: 11.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.1164, allocations: 0 / 0.503 GB, free: 11.05 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.001319/0.1177, allocations: 1 MB / 0.504 GB, free: 10 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.1178, allocations: 19.97 kB / 0.504 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.481e-05/0.1178, allocations: 78.47 kB / 0.5041 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002518/0.1181, allocations: 91.05 kB / 0.5042 GB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006582/0.1188, allocations: 498.8 kB / 0.5047 GB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.1188, allocations: 25 kB / 0.5047 GB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.83e-05/0.1189, allocations: 39.94 kB / 0.5047 GB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007632/0.1196, allocations: 477.2 kB / 0.5052 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.1197, allocations: 0 / 0.5052 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.014e-05/0.1197, allocations: 19.94 kB / 0.5052 GB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.1197, allocations: 12 kB / 0.5052 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006594/0.1204, allocations: 250.1 kB / 0.5055 GB, free: 8.418 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.1221, allocations: 1.111 MB / 0.5065 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006798/0.1228, allocations: 181 kB / 0.5067 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.123, allocations: 81.81 kB / 0.5068 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.1231, allocations: 11.92 kB / 0.5068 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.1231, allocations: 42.56 kB / 0.5068 GB, free: 6.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.1231, allocations: 0 / 0.5068 GB, free: 6.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008941/0.124, allocations: 292.7 kB / 0.5071 GB, free: 6.613 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/0.1242, allocations: 441 kB / 0.5075 GB, free: 6.078 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006872/0.1249, allocations: 0.641 MB / 0.5082 GB, free: 5.426 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.1249, allocations: 33.7 kB / 0.5082 GB, free: 5.387 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002029/0.1251, allocations: 312 kB / 0.5085 GB, free: 5.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.33e-05/0.1252, allocations: 39.44 kB / 0.5085 GB, free: 5.035 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.1253, allocations: 57.52 kB / 0.5086 GB, free: 4.973 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1254, allocations: 358.8 kB / 0.5089 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002459/0.1257, allocations: 71.95 kB / 0.509 GB, free: 4.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.126, allocations: 193.1 kB / 0.5092 GB, free: 4.305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004591/0.1265, allocations: 158.4 kB / 0.5093 GB, free: 4.141 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1265, allocations: 0 / 0.5093 GB, free: 4.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006197/0.1271, allocations: 241 kB / 0.5096 GB, free: 3.898 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1271, allocations: 7.984 kB / 0.5096 GB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.1271, allocations: 4.094 kB / 0.5096 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.1272, allocations: 7.875 kB / 0.5096 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.1274, allocations: 43.91 kB / 0.5096 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.1274, allocations: 0 / 0.5096 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.1278, allocations: 47.83 kB / 0.5097 GB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.1278, allocations: 11.98 kB / 0.5097 GB, free: 3.777 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.0001973/0.128, allocations: 174.4 kB / 0.5099 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.1281, allocations: 59.34 kB / 0.5099 GB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004794/0.1286, allocations: 194.6 kB / 0.5101 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1286, allocations: 0 / 0.5101 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1286, allocations: 0 / 0.5101 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1286, allocations: 4 kB / 0.5101 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005421/0.1292, allocations: 481.2 kB / 0.5106 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1292, allocations: 0 / 0.5106 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002089/0.1294, allocations: 27.97 kB / 0.5106 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.1294, allocations: 4 kB / 0.5106 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.1295, allocations: 7.938 kB / 0.5106 GB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.1295, allocations: 7.984 kB / 0.5106 GB, free: 2.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1295, allocations: 0 / 0.5106 GB, free: 2.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006081/0.1301, allocations: 405.9 kB / 0.511 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001828/0.1303, allocations: 168.3 kB / 0.5111 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.711e-05/0.1303, allocations: 15.94 kB / 0.5112 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/0.1307, allocations: 31.95 kB / 0.5112 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.017e-05/0.1308, allocations: 11.98 kB / 0.5112 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.1308, allocations: 7.984 kB / 0.5112 GB, free: 2.105 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004953/0.1313, allocations: 455 kB / 0.5116 GB, free: 1.668 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1313, allocations: 0 / 0.5116 GB, free: 1.668 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004432/0.1317, allocations: 111.5 kB / 0.5118 GB, free: 1.559 MB / 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.001552/0.1333, allocations: 1.191 MB / 0.5129 GB, free: 484 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00058/0.1339, allocations: 167.8 kB / 0.5131 GB, free: 316 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.1339, allocations: 0 / 0.5131 GB, free: 316 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002552/0.1342, allocations: 79.88 kB / 0.5132 GB, free: 236 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007695/0.135, allocations: 154.6 kB / 0.5133 GB, free: 88 kB / 382.1 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005045/0.14, allocations: 3.668 MB / 0.5169 GB, free: 12.31 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004002/0.1404, allocations: 0.8855 MB / 0.5177 GB, free: 11.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000226/0.1407, allocations: 55.47 kB / 0.5178 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002413/0.1409, allocations: 199.4 kB / 0.518 GB, free: 11.15 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1409, allocations: 4 kB / 0.518 GB, free: 11.14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2108/0.3517, allocations: 10.12 MB / 0.5279 GB, free: 1.219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.623/8.974, allocations: 11.09 kB / 0.5279 GB, free: 1.211 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_LookupFunctions_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1)