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.005097/0.005097, allocations: 106.3 kB / 15.74 MB, free: 6.004 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.001225/0.001225, allocations: 196.5 kB / 16.68 MB, free: 5.93 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1656/0.1656, allocations: 31.17 MB / 321.7 MB, free: 180 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.89 kB / 446.2 MB, free: 2.281 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09565/0.09697, allocations: 56.35 MB / 0.4908 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008148/0.1052, allocations: 6.991 MB / 0.4976 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003799/0.109, allocations: 2.177 MB / 0.4997 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008025/0.1098, allocations: 19.88 kB / 0.4998 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005649/0.1104, allocations: 166.6 kB / 0.4999 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006024/0.1111, allocations: 150.8 kB / 0.5001 GB, free: 368 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008826/0.112, allocations: 327.2 kB / 0.5004 GB, free: 40 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2207/0.3327, allocations: 0.7202 MB / 0.5011 GB, free: 5.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006501/0.3334, allocations: 362.6 kB / 0.5014 GB, free: 5.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003451/0.3338, allocations: 239.5 kB / 0.5017 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/0.334, allocations: 249.2 kB / 0.5019 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.458e-05/0.3341, allocations: 44.69 kB / 0.5019 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002696/0.3344, allocations: 87.41 kB / 0.502 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.3346, allocations: 152.9 kB / 0.5022 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002023/0.3348, allocations: 289.8 kB / 0.5024 GB, free: 4.871 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000695/0.3355, allocations: 0.632 MB / 0.5031 GB, free: 4.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3355, allocations: 1.219 kB / 0.5031 GB, free: 4.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3355, allocations: 0.625 kB / 0.5031 GB, free: 4.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.3355, allocations: 1.641 kB / 0.5031 GB, free: 4.75 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.001335/0.3369, allocations: 1.004 MB / 0.504 GB, free: 4.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.3369, allocations: 9.281 kB / 0.5041 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.826e-05/0.337, allocations: 76.52 kB / 0.5041 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002844/0.3373, allocations: 92.08 kB / 0.5042 GB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006812/0.338, allocations: 0.5007 MB / 0.5047 GB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.581e-05/0.338, allocations: 27.5 kB / 0.5047 GB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.419e-05/0.3381, allocations: 35.12 kB / 0.5048 GB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007218/0.3388, allocations: 469.3 kB / 0.5052 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.3388, allocations: 0 / 0.5052 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.3389, allocations: 20.09 kB / 0.5052 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.3389, allocations: 9.891 kB / 0.5052 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007023/0.3396, allocations: 256.2 kB / 0.5055 GB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.3415, allocations: 1.121 MB / 0.5066 GB, free: 3.129 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007339/0.3423, allocations: 174.8 kB / 0.5067 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000249/0.3425, allocations: 78.47 kB / 0.5068 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.672e-05/0.3426, allocations: 9.188 kB / 0.5068 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.776e-05/0.3426, allocations: 39.75 kB / 0.5069 GB, free: 3.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 2.404e-06/0.3426, allocations: 2.766 kB / 0.5069 GB, free: 3.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009815/0.3436, allocations: 295.2 kB / 0.5072 GB, free: 2.957 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.3437, allocations: 441.6 kB / 0.5076 GB, free: 2.426 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000847/0.3446, allocations: 0.6386 MB / 0.5082 GB, free: 2.301 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.3446, allocations: 28.61 kB / 0.5082 GB, free: 2.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/0.3449, allocations: 315 kB / 0.5085 GB, free: 2.121 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.427e-05/0.3449, allocations: 43.25 kB / 0.5086 GB, free: 2.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.345, allocations: 61.5 kB / 0.5086 GB, free: 2.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.3451, allocations: 360.2 kB / 0.509 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.3454, allocations: 68.89 kB / 0.509 GB, free: 1.754 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003302/0.3457, allocations: 191 kB / 0.5092 GB, free: 1.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004782/0.3462, allocations: 162.5 kB / 0.5094 GB, free: 1.586 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3462, allocations: 0 / 0.5094 GB, free: 1.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006347/0.3469, allocations: 242.1 kB / 0.5096 GB, free: 1.531 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3469, allocations: 7.344 kB / 0.5096 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3469, allocations: 1.562 kB / 0.5096 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.347, allocations: 9.719 kB / 0.5096 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002616/0.3472, allocations: 42.33 kB / 0.5097 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.3472, allocations: 1.281 kB / 0.5097 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.3476, allocations: 42.73 kB / 0.5097 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.3476, allocations: 5.047 kB / 0.5097 GB, free: 1.523 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.000213/0.3478, allocations: 188.4 kB / 0.5099 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.348, allocations: 59.73 kB / 0.5099 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005072/0.3485, allocations: 188.7 kB / 0.5101 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3485, allocations: 3.25 kB / 0.5101 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.3485, allocations: 0 / 0.5101 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.3485, allocations: 2.328 kB / 0.5101 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006058/0.3491, allocations: 482.3 kB / 0.5106 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3491, allocations: 1 kB / 0.5106 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.3493, allocations: 38.31 kB / 0.5106 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.3493, allocations: 2.641 kB / 0.5106 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.3494, allocations: 2.453 kB / 0.5106 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.3494, allocations: 5.156 kB / 0.5106 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3494, allocations: 1.094 kB / 0.5106 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005961/0.35, allocations: 411.6 kB / 0.511 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001816/0.3502, allocations: 163.4 kB / 0.5112 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.763e-05/0.3502, allocations: 7.938 kB / 0.5112 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003428/0.3506, allocations: 33.94 kB / 0.5112 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.779e-05/0.3507, allocations: 15.78 kB / 0.5112 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.3507, allocations: 5.406 kB / 0.5112 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005749/0.3513, allocations: 458.7 kB / 0.5117 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3513, allocations: 1.312 kB / 0.5117 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000455/0.3517, allocations: 110.2 kB / 0.5118 GB, free: 0.6367 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.001595/0.3533, allocations: 1.193 MB / 0.513 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005581/0.3539, allocations: 168.9 kB / 0.5131 GB, free: 15.81 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3539, allocations: 1.375 kB / 0.5131 GB, free: 15.81 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002387/0.3542, allocations: 77.2 kB / 0.5132 GB, free: 15.81 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007805/0.355, allocations: 148 kB / 0.5133 GB, free: 15.79 MB / 398.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.005092/0.3601, allocations: 3.676 MB / 0.5169 GB, free: 14.1 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000479/0.3606, allocations: 0.8844 MB / 0.5178 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002596/0.3608, allocations: 67.05 kB / 0.5178 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.3611, allocations: 198.4 kB / 0.518 GB, free: 13.38 MB / 398.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3611, allocations: 0 / 0.518 GB, free: 13.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2082/0.5693, allocations: 10.13 MB / 0.5279 GB, free: 10.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.633/9.203, allocations: 10.28 kB / 0.5279 GB, free: 10.34 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)