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.004296/0.004296, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001038/0.001038, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.27/1.27, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2702/0.2702, allocations: 31.16 MB / 321.7 MB, free: 4.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 60.77 kB / 446.2 MB, free: 30.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08646/0.0876, allocations: 56.37 MB / 0.4908 GB, free: 7.742 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007044/0.09468, allocations: 6.972 MB / 0.4976 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003125/0.09783, allocations: 2.161 MB / 0.4997 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005636/0.09841, allocations: 27.81 kB / 0.4998 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004049/0.09883, allocations: 162.6 kB / 0.4999 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003864/0.09925, allocations: 138.8 kB / 0.5 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006362/0.09989, allocations: 334.3 kB / 0.5004 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006545/0.1006, allocations: 0.73 MB / 0.5011 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004684/0.101, allocations: 363.2 kB / 0.5014 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002348/0.1013, allocations: 234.8 kB / 0.5016 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.1015, allocations: 242.4 kB / 0.5019 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.414e-05/0.1016, allocations: 44 kB / 0.5019 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.1017, allocations: 83.97 kB / 0.502 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.1019, allocations: 151.3 kB / 0.5021 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002149/0.1021, allocations: 294 kB / 0.5024 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000619/0.1027, allocations: 0.6351 MB / 0.503 GB, free: 11.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1028, allocations: 7.938 kB / 0.5031 GB, free: 11.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1028, allocations: 0 / 0.5031 GB, free: 11.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1028, allocations: 0 / 0.5031 GB, free: 11.16 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.00138/0.1042, allocations: 0.9961 MB / 0.504 GB, free: 10.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1042, allocations: 12.03 kB / 0.504 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.272e-05/0.1043, allocations: 78.47 kB / 0.5041 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002583/0.1046, allocations: 99.03 kB / 0.5042 GB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006603/0.1052, allocations: 0.491 MB / 0.5047 GB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/0.1053, allocations: 25 kB / 0.5047 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.658e-05/0.1053, allocations: 36 kB / 0.5047 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007308/0.1061, allocations: 473.2 kB / 0.5052 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1061, allocations: 0 / 0.5052 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.846e-05/0.1061, allocations: 19.94 kB / 0.5052 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.1061, allocations: 12 kB / 0.5052 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006475/0.1068, allocations: 250.1 kB / 0.5055 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.1084, allocations: 1.119 MB / 0.5066 GB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006783/0.1091, allocations: 181 kB / 0.5067 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002329/0.1093, allocations: 73.67 kB / 0.5068 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.1094, allocations: 4 kB / 0.5068 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.1094, allocations: 46.48 kB / 0.5068 GB, free: 7.027 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.1094, allocations: 4 kB / 0.5068 GB, free: 7.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008916/0.1103, allocations: 301 kB / 0.5071 GB, free: 6.723 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001736/0.1105, allocations: 445 kB / 0.5076 GB, free: 6.184 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006366/0.1111, allocations: 0.6332 MB / 0.5082 GB, free: 5.539 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.1112, allocations: 33.7 kB / 0.5082 GB, free: 5.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.1114, allocations: 312 kB / 0.5085 GB, free: 5.188 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.38e-05/0.1114, allocations: 35.45 kB / 0.5085 GB, free: 5.152 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.236e-05/0.1115, allocations: 61.5 kB / 0.5086 GB, free: 5.086 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1116, allocations: 358.7 kB / 0.5089 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.1119, allocations: 71.94 kB / 0.509 GB, free: 4.656 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003165/0.1122, allocations: 188.6 kB / 0.5092 GB, free: 4.422 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/0.1127, allocations: 162.4 kB / 0.5093 GB, free: 4.254 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1127, allocations: 3.938 kB / 0.5094 GB, free: 4.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005989/0.1133, allocations: 245 kB / 0.5096 GB, free: 4.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.1133, allocations: 4 kB / 0.5096 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.1133, allocations: 4.078 kB / 0.5096 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1133, allocations: 3.938 kB / 0.5096 GB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.1136, allocations: 43.89 kB / 0.5096 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.1136, allocations: 3.984 kB / 0.5096 GB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003091/0.1139, allocations: 51.8 kB / 0.5097 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.1139, allocations: 7.984 kB / 0.5097 GB, free: 3.887 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.0001863/0.1141, allocations: 182.3 kB / 0.5099 GB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.086e-05/0.1142, allocations: 55.34 kB / 0.5099 GB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000464/0.1147, allocations: 186.7 kB / 0.5101 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.1147, allocations: 4 kB / 0.5101 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.1147, allocations: 4 kB / 0.5101 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.1147, allocations: 0 / 0.5101 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004954/0.1152, allocations: 473.2 kB / 0.5106 GB, free: 2.934 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1152, allocations: 4 kB / 0.5106 GB, free: 2.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001963/0.1154, allocations: 35.95 kB / 0.5106 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.1155, allocations: 7.938 kB / 0.5106 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.1155, allocations: 3.938 kB / 0.5106 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1155, allocations: 0 / 0.5106 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1155, allocations: 0 / 0.5106 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006133/0.1161, allocations: 409.9 kB / 0.511 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002005/0.1163, allocations: 168.3 kB / 0.5112 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.53e-05/0.1164, allocations: 11.94 kB / 0.5112 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000334/0.1167, allocations: 39.95 kB / 0.5112 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.1168, allocations: 7.984 kB / 0.5112 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.1168, allocations: 4 kB / 0.5112 GB, free: 2.219 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004627/0.1173, allocations: 463 kB / 0.5117 GB, free: 1.773 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.1173, allocations: 0 / 0.5117 GB, free: 1.773 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003993/0.1177, allocations: 107.5 kB / 0.5118 GB, free: 1.668 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.002675/0.1204, allocations: 1.194 MB / 0.5129 GB, free: 0.582 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005948/0.121, allocations: 167.8 kB / 0.5131 GB, free: 428 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.121, allocations: 4.062 kB / 0.5131 GB, free: 424 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.1212, allocations: 83.88 kB / 0.5132 GB, free: 340 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007532/0.122, allocations: 139.3 kB / 0.5133 GB, free: 204 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.004734/0.1268, allocations: 3.671 MB / 0.5169 GB, free: 12.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.1272, allocations: 0.8855 MB / 0.5178 GB, free: 11.51 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002029/0.1274, allocations: 63.61 kB / 0.5178 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.1276, allocations: 195.4 kB / 0.518 GB, free: 11.25 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1276, allocations: 0 / 0.518 GB, free: 11.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3692/0.4968, allocations: 10.13 MB / 0.5279 GB, free: 1.324 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.919/8.416, allocations: 7.875 kB / 0.5279 GB, free: 1.316 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1)