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.00709/0.00709, allocations: 99.72 kB / 15.73 MB, free: 6.5 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.00145/0.00145, allocations: 199.9 kB / 16.68 MB, free: 6.371 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2734/0.2734, allocations: 31.12 MB / 321.7 MB, free: 4.223 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 70.8 kB / 446.2 MB, free: 30.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09061/0.09182, allocations: 56.38 MB / 0.4908 GB, free: 7.688 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007754/0.09962, allocations: 6.964 MB / 0.4976 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003459/0.1031, allocations: 2.173 MB / 0.4997 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008346/0.104, allocations: 27.88 kB / 0.4997 GB, free: 14.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000506/0.1045, allocations: 162.6 kB / 0.4999 GB, free: 14.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005137/0.1051, allocations: 142.8 kB / 0.5 GB, free: 14.19 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008226/0.1059, allocations: 339.1 kB / 0.5003 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007499/0.1067, allocations: 0.7223 MB / 0.501 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005108/0.1072, allocations: 364.6 kB / 0.5014 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.1074, allocations: 242.7 kB / 0.5016 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.1077, allocations: 242.4 kB / 0.5019 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.678e-05/0.1077, allocations: 44 kB / 0.5019 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.1079, allocations: 99.91 kB / 0.502 GB, free: 12.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.1081, allocations: 147.3 kB / 0.5021 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002018/0.1083, allocations: 294 kB / 0.5024 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000663/0.1089, allocations: 0.6336 MB / 0.503 GB, free: 11.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.1089, allocations: 8 kB / 0.503 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.109, allocations: 0 / 0.503 GB, free: 11.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.109, allocations: 0 / 0.503 GB, free: 11.07 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.001437/0.1104, allocations: 1.015 MB / 0.504 GB, free: 10.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.1105, allocations: 8.031 kB / 0.504 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.125e-05/0.1106, allocations: 78.47 kB / 0.5041 GB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000262/0.1108, allocations: 103.4 kB / 0.5042 GB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000677/0.1115, allocations: 0.4955 MB / 0.5047 GB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.1116, allocations: 29 kB / 0.5047 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.887e-05/0.1116, allocations: 32 kB / 0.5048 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007718/0.1124, allocations: 479.9 kB / 0.5052 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.1124, allocations: 4 kB / 0.5052 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.179e-05/0.1125, allocations: 23.94 kB / 0.5052 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.1125, allocations: 8 kB / 0.5053 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000689/0.1132, allocations: 262 kB / 0.5055 GB, free: 8.406 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.1149, allocations: 1.111 MB / 0.5066 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007214/0.1157, allocations: 185 kB / 0.5068 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002415/0.1159, allocations: 77.61 kB / 0.5068 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.1159, allocations: 0 / 0.5068 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.116, allocations: 46.55 kB / 0.5069 GB, free: 6.902 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 2.465e-06/0.116, allocations: 0 / 0.5069 GB, free: 6.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009338/0.1169, allocations: 293.5 kB / 0.5072 GB, free: 6.609 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001867/0.1171, allocations: 456.9 kB / 0.5076 GB, free: 6.059 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007596/0.1179, allocations: 0.6332 MB / 0.5082 GB, free: 5.414 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.1179, allocations: 29.7 kB / 0.5082 GB, free: 5.379 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002524/0.1182, allocations: 320.5 kB / 0.5085 GB, free: 5.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.638e-05/0.1182, allocations: 39.64 kB / 0.5086 GB, free: 5.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.1184, allocations: 49.66 kB / 0.5086 GB, free: 4.965 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1185, allocations: 358.8 kB / 0.509 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002663/0.1188, allocations: 75.94 kB / 0.509 GB, free: 4.531 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003538/0.1191, allocations: 184.6 kB / 0.5092 GB, free: 4.301 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005007/0.1197, allocations: 162.4 kB / 0.5094 GB, free: 4.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1197, allocations: 0 / 0.5094 GB, free: 4.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006577/0.1203, allocations: 257.1 kB / 0.5096 GB, free: 3.875 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.1204, allocations: 8 kB / 0.5096 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1204, allocations: 0 / 0.5096 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.1204, allocations: 3.938 kB / 0.5096 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.1207, allocations: 39.95 kB / 0.5097 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.445e-06/0.1207, allocations: 4 kB / 0.5097 GB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.121, allocations: 55.88 kB / 0.5097 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.1211, allocations: 4 kB / 0.5097 GB, free: 3.762 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.0002143/0.1213, allocations: 186.3 kB / 0.5099 GB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.1214, allocations: 59.62 kB / 0.51 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005154/0.1219, allocations: 195 kB / 0.5102 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1219, allocations: 0 / 0.5102 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.1219, allocations: 4 kB / 0.5102 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.122, allocations: 0 / 0.5102 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005435/0.1225, allocations: 473.2 kB / 0.5106 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1225, allocations: 0 / 0.5106 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002136/0.1227, allocations: 43.89 kB / 0.5107 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1227, allocations: 0 / 0.5107 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.1228, allocations: 7.938 kB / 0.5107 GB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.1228, allocations: 4 kB / 0.5107 GB, free: 2.742 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1228, allocations: 3.938 kB / 0.5107 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006373/0.1234, allocations: 398.4 kB / 0.511 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.1236, allocations: 180.5 kB / 0.5112 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.17e-05/0.1237, allocations: 11.94 kB / 0.5112 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003601/0.1241, allocations: 35.95 kB / 0.5113 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.1241, allocations: 11.92 kB / 0.5113 GB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.1241, allocations: 4 kB / 0.5113 GB, free: 2.074 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004923/0.1246, allocations: 463 kB / 0.5117 GB, free: 1.629 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1246, allocations: 0 / 0.5117 GB, free: 1.629 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004228/0.1251, allocations: 107.7 kB / 0.5118 GB, free: 1.523 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.001685/0.1268, allocations: 1.188 MB / 0.513 GB, free: 452 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006261/0.1274, allocations: 171.8 kB / 0.5131 GB, free: 280 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.1274, allocations: 4 kB / 0.5132 GB, free: 276 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002728/0.1277, allocations: 84.06 kB / 0.5132 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008185/0.1285, allocations: 145.6 kB / 0.5134 GB, free: 52 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.005339/0.1339, allocations: 3.689 MB / 0.517 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004085/0.1343, allocations: 0.8893 MB / 0.5178 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000228/0.1345, allocations: 63.61 kB / 0.5179 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.1348, allocations: 199.4 kB / 0.5181 GB, free: 11.08 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1348, allocations: 0 / 0.5181 GB, free: 11.08 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2351/0.3699, allocations: 10.11 MB / 0.528 GB, free: 1.164 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.607/8.977, allocations: 17.77 kB / 0.528 GB, free: 1.152 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 & python3 -m fmpy simulate --output-file BusinessSimulation_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_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1)