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.005105/0.005105, allocations: 96.7 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.001303/0.001303, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2638/0.2638, allocations: 31.12 MB / 321.7 MB, free: 4.203 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 64.17 kB / 446.2 MB, free: 30.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0937/0.09552, allocations: 56.37 MB / 0.4908 GB, free: 7.699 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.00881/0.1044, allocations: 6.975 MB / 0.4976 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003699/0.1081, allocations: 2.165 MB / 0.4997 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005224/0.1086, allocations: 19.88 kB / 0.4997 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004438/0.1091, allocations: 170.5 kB / 0.4999 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004063/0.1095, allocations: 138.8 kB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006875/0.1102, allocations: 335 kB / 0.5003 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007839/0.111, allocations: 0.73 MB / 0.501 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005345/0.1116, allocations: 364.7 kB / 0.5014 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002722/0.1119, allocations: 230.7 kB / 0.5016 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.1121, allocations: 250.4 kB / 0.5019 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.339e-05/0.1122, allocations: 44 kB / 0.5019 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.1124, allocations: 87.97 kB / 0.502 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.1126, allocations: 151.3 kB / 0.5021 GB, free: 12.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002506/0.1128, allocations: 282 kB / 0.5024 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007444/0.1136, allocations: 0.6492 MB / 0.503 GB, free: 11.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1136, allocations: 0 / 0.503 GB, free: 11.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1136, allocations: 0 / 0.503 GB, free: 11.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1136, allocations: 0 / 0.503 GB, free: 11.1 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.001498/0.1151, allocations: 1.015 MB / 0.504 GB, free: 10.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.1152, allocations: 12.03 kB / 0.504 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/0.1153, allocations: 78.47 kB / 0.5041 GB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002616/0.1155, allocations: 107.4 kB / 0.5042 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007319/0.1163, allocations: 499.4 kB / 0.5047 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.766e-05/0.1163, allocations: 32.98 kB / 0.5047 GB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.792e-05/0.1164, allocations: 36 kB / 0.5048 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008419/0.1172, allocations: 477.1 kB / 0.5052 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.1173, allocations: 0 / 0.5052 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.065e-05/0.1173, allocations: 19.94 kB / 0.5052 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.1173, allocations: 8 kB / 0.5052 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007123/0.118, allocations: 254.1 kB / 0.5055 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001849/0.1199, allocations: 1.127 MB / 0.5066 GB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007225/0.1206, allocations: 173.1 kB / 0.5067 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.1209, allocations: 81.61 kB / 0.5068 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.1209, allocations: 3.938 kB / 0.5068 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.121, allocations: 38.56 kB / 0.5069 GB, free: 6.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 3.216e-06/0.121, allocations: 4 kB / 0.5069 GB, free: 6.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009365/0.1219, allocations: 297.2 kB / 0.5071 GB, free: 6.633 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002525/0.1222, allocations: 448.9 kB / 0.5076 GB, free: 6.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007857/0.123, allocations: 0.6332 MB / 0.5082 GB, free: 5.445 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.123, allocations: 33.7 kB / 0.5082 GB, free: 5.406 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002682/0.1233, allocations: 324.6 kB / 0.5085 GB, free: 5.082 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.783e-05/0.1233, allocations: 39.64 kB / 0.5086 GB, free: 5.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.1234, allocations: 49.66 kB / 0.5086 GB, free: 4.988 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.1236, allocations: 358.8 kB / 0.509 GB, free: 4.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/0.1239, allocations: 79.94 kB / 0.509 GB, free: 4.551 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003753/0.1243, allocations: 182.5 kB / 0.5092 GB, free: 4.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005061/0.1248, allocations: 162.4 kB / 0.5094 GB, free: 4.152 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1248, allocations: 0 / 0.5094 GB, free: 4.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006676/0.1255, allocations: 249.2 kB / 0.5096 GB, free: 3.902 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.1255, allocations: 6.031 kB / 0.5096 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1255, allocations: 0 / 0.5096 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.1256, allocations: 8.031 kB / 0.5096 GB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.1258, allocations: 51.83 kB / 0.5097 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.1258, allocations: 0 / 0.5097 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003274/0.1262, allocations: 47.84 kB / 0.5097 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.1262, allocations: 8 kB / 0.5097 GB, free: 3.785 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.0002242/0.1264, allocations: 182.4 kB / 0.5099 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.1265, allocations: 59.62 kB / 0.51 GB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005089/0.127, allocations: 186.9 kB / 0.5101 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1271, allocations: 4 kB / 0.5101 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1271, allocations: 7.984 kB / 0.5101 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.1271, allocations: 3.984 kB / 0.5101 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006043/0.1277, allocations: 473.2 kB / 0.5106 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1277, allocations: 0 / 0.5106 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002041/0.1279, allocations: 35.95 kB / 0.5106 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1279, allocations: 0 / 0.5106 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/0.1279, allocations: 11.94 kB / 0.5106 GB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.128, allocations: 0 / 0.5106 GB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.128, allocations: 0 / 0.5106 GB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006935/0.1287, allocations: 410.2 kB / 0.511 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002024/0.1289, allocations: 176.5 kB / 0.5112 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.938e-05/0.1289, allocations: 11.94 kB / 0.5112 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003593/0.1293, allocations: 39.95 kB / 0.5113 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.821e-05/0.1294, allocations: 11.98 kB / 0.5113 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.1294, allocations: 4 kB / 0.5113 GB, free: 2.098 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005441/0.1299, allocations: 459 kB / 0.5117 GB, free: 1.656 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1299, allocations: 0 / 0.5117 GB, free: 1.656 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000403/0.1303, allocations: 107.7 kB / 0.5118 GB, free: 1.551 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.002155/0.1325, allocations: 1.195 MB / 0.513 GB, free: 472 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000603/0.1331, allocations: 163.8 kB / 0.5131 GB, free: 308 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1331, allocations: 0 / 0.5131 GB, free: 308 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002814/0.1334, allocations: 87.94 kB / 0.5132 GB, free: 220 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007908/0.1342, allocations: 137.2 kB / 0.5133 GB, free: 84 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.005534/0.1398, allocations: 3.694 MB / 0.517 GB, free: 12.28 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005323/0.1403, allocations: 0.8855 MB / 0.5178 GB, free: 11.37 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002438/0.1406, allocations: 67.42 kB / 0.5179 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.1408, allocations: 195.4 kB / 0.5181 GB, free: 11.11 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1409, allocations: 0 / 0.5181 GB, free: 11.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.273/0.4139, allocations: 10.12 MB / 0.528 GB, free: 1.191 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.705/9.119, allocations: 7.938 kB / 0.528 GB, free: 1.184 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)