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: "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_dev_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.007668/0.007668, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001847/0.001847, allocations: 201.7 kB / 16.68 MB, free: 5.969 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2666/0.2666, allocations: 31.16 MB / 321.7 MB, free: 4.309 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 61.28 kB / 446.2 MB, free: 30.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.104, allocations: 56.37 MB / 0.4908 GB, free: 7.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007615/0.1117, allocations: 6.964 MB / 0.4976 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003394/0.1151, allocations: 2.177 MB / 0.4997 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005796/0.1157, allocations: 19.88 kB / 0.4998 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004494/0.1162, allocations: 166.6 kB / 0.4999 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004308/0.1167, allocations: 150.8 kB / 0.5001 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006981/0.1174, allocations: 338.6 kB / 0.5004 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006595/0.118, allocations: 0.7263 MB / 0.5011 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005532/0.1186, allocations: 356.7 kB / 0.5014 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002958/0.1189, allocations: 246.7 kB / 0.5017 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.1192, allocations: 246.4 kB / 0.5019 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.293e-05/0.1193, allocations: 44 kB / 0.502 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001758/0.1194, allocations: 95.95 kB / 0.502 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001666/0.1196, allocations: 143.3 kB / 0.5022 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002403/0.1199, allocations: 290 kB / 0.5025 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007838/0.1207, allocations: 0.6453 MB / 0.5031 GB, free: 11.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1207, allocations: 3.938 kB / 0.5031 GB, free: 11.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1207, allocations: 0 / 0.5031 GB, free: 11.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.1207, allocations: 0 / 0.5031 GB, free: 11.12 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.001591/0.1223, allocations: 1.012 MB / 0.5041 GB, free: 10.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/0.1224, allocations: 16.02 kB / 0.5041 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.063e-05/0.1225, allocations: 78.47 kB / 0.5042 GB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002953/0.1228, allocations: 103.4 kB / 0.5043 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008121/0.1236, allocations: 0.4955 MB / 0.5048 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.368e-05/0.1236, allocations: 29 kB / 0.5048 GB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.406e-05/0.1237, allocations: 36 kB / 0.5048 GB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008007/0.1245, allocations: 473.2 kB / 0.5053 GB, free: 8.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.1245, allocations: 0 / 0.5053 GB, free: 8.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.516e-05/0.1246, allocations: 27.86 kB / 0.5053 GB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.1246, allocations: 8 kB / 0.5053 GB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006743/0.1253, allocations: 254.1 kB / 0.5055 GB, free: 8.453 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001849/0.1271, allocations: 1.123 MB / 0.5066 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007363/0.1279, allocations: 173.1 kB / 0.5068 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.1282, allocations: 77.66 kB / 0.5069 GB, free: 7.004 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.1282, allocations: 3.938 kB / 0.5069 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.1282, allocations: 42.5 kB / 0.5069 GB, free: 6.949 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.1282, allocations: 4 kB / 0.5069 GB, free: 6.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009216/0.1292, allocations: 297.3 kB / 0.5072 GB, free: 6.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000202/0.1294, allocations: 445 kB / 0.5076 GB, free: 6.109 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007094/0.1301, allocations: 0.641 MB / 0.5083 GB, free: 5.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.1301, allocations: 29.7 kB / 0.5083 GB, free: 5.422 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002401/0.1304, allocations: 320.5 kB / 0.5086 GB, free: 5.102 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.463e-05/0.1304, allocations: 35.66 kB / 0.5086 GB, free: 5.066 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.1305, allocations: 57.64 kB / 0.5087 GB, free: 5.004 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1307, allocations: 350.8 kB / 0.509 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002547/0.131, allocations: 75.94 kB / 0.5091 GB, free: 4.578 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.1314, allocations: 192.7 kB / 0.5093 GB, free: 4.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004853/0.1319, allocations: 150.5 kB / 0.5094 GB, free: 4.184 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.1319, allocations: 7.938 kB / 0.5094 GB, free: 4.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00065/0.1325, allocations: 253.2 kB / 0.5097 GB, free: 3.922 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.1326, allocations: 4 kB / 0.5097 GB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1326, allocations: 0 / 0.5097 GB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.1326, allocations: 11.92 kB / 0.5097 GB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.1328, allocations: 35.97 kB / 0.5097 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.1329, allocations: 7.938 kB / 0.5097 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.1332, allocations: 51.84 kB / 0.5098 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.1332, allocations: 7.984 kB / 0.5098 GB, free: 3.805 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.0002093/0.1334, allocations: 182.4 kB / 0.51 GB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.1336, allocations: 59.62 kB / 0.51 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005516/0.1341, allocations: 191 kB / 0.5102 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.1341, allocations: 8 kB / 0.5102 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.1341, allocations: 0 / 0.5102 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1342, allocations: 0 / 0.5102 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005372/0.1347, allocations: 473.2 kB / 0.5107 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1347, allocations: 0 / 0.5107 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001991/0.1349, allocations: 35.97 kB / 0.5107 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1349, allocations: 0 / 0.5107 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.1349, allocations: 7.938 kB / 0.5107 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1349, allocations: 0 / 0.5107 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.135, allocations: 80 / 0.5107 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007501/0.1357, allocations: 414.2 kB / 0.5111 GB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000213/0.1359, allocations: 176.5 kB / 0.5113 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.108e-05/0.136, allocations: 11.94 kB / 0.5113 GB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003564/0.1364, allocations: 43.95 kB / 0.5113 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.885e-05/0.1364, allocations: 7.984 kB / 0.5113 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.1364, allocations: 7.984 kB / 0.5113 GB, free: 2.117 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004842/0.1369, allocations: 459 kB / 0.5118 GB, free: 1.676 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1369, allocations: 0 / 0.5118 GB, free: 1.676 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004139/0.1374, allocations: 103.7 kB / 0.5119 GB, free: 1.574 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.001627/0.139, allocations: 1.2 MB / 0.513 GB, free: 492 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006092/0.1396, allocations: 163.8 kB / 0.5132 GB, free: 328 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1396, allocations: 64 / 0.5132 GB, free: 328 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000259/0.1399, allocations: 91.86 kB / 0.5133 GB, free: 236 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008165/0.1407, allocations: 147 kB / 0.5134 GB, free: 96 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.007203/0.1479, allocations: 3.689 MB / 0.517 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006403/0.1486, allocations: 0.8854 MB / 0.5179 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002797/0.1489, allocations: 71.61 kB / 0.518 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002595/0.1492, allocations: 195.4 kB / 0.5181 GB, free: 11.12 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1492, allocations: 4 kB / 0.5181 GB, free: 11.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2105/0.3597, allocations: 10.12 MB / 0.528 GB, free: 1.203 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.598/8.958, allocations: 0 / 0.528 GB, free: 1.203 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1)