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.008047/0.008046, allocations: 99.53 kB / 15.73 MB, free: 6.496 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.002237/0.002237, allocations: 195.9 kB / 16.68 MB, free: 6.375 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.545/1.545, 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-main/package.mo): time 0.2781/0.2781, allocations: 31.16 MB / 321.7 MB, free: 4.352 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 67.44 kB / 446.2 MB, free: 30.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1026, allocations: 56.37 MB / 0.4908 GB, free: 7.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.009055/0.1117, allocations: 6.966 MB / 0.4976 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004708/0.1164, allocations: 2.177 MB / 0.4997 GB, free: 14.6 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001451/0.118, allocations: 19.88 kB / 0.4998 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006535/0.1187, allocations: 170.5 kB / 0.4999 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005872/0.1193, allocations: 134.8 kB / 0.5001 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008882/0.1202, allocations: 330.3 kB / 0.5004 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008357/0.121, allocations: 0.7302 MB / 0.5011 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005701/0.1216, allocations: 360.7 kB / 0.5014 GB, free: 12.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003378/0.1219, allocations: 230.8 kB / 0.5016 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002879/0.1222, allocations: 246.4 kB / 0.5019 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.335e-05/0.1223, allocations: 48 kB / 0.5019 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002157/0.1226, allocations: 91.97 kB / 0.502 GB, free: 12.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.1228, allocations: 147.3 kB / 0.5022 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002704/0.123, allocations: 294 kB / 0.5024 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008633/0.1239, allocations: 0.6375 MB / 0.5031 GB, free: 11.19 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1239, allocations: 3.984 kB / 0.5031 GB, free: 11.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1239, allocations: 0 / 0.5031 GB, free: 11.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.124, allocations: 0 / 0.5031 GB, free: 11.18 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.001567/0.1255, allocations: 1.011 MB / 0.5041 GB, free: 10.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.1256, allocations: 15.97 kB / 0.5041 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.973e-05/0.1257, allocations: 82.47 kB / 0.5041 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002808/0.126, allocations: 99.42 kB / 0.5042 GB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008294/0.1268, allocations: 0.4916 MB / 0.5047 GB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.692e-05/0.1269, allocations: 32.94 kB / 0.5048 GB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.112e-05/0.1269, allocations: 32 kB / 0.5048 GB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008795/0.1278, allocations: 477.2 kB / 0.5052 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.1278, allocations: 0 / 0.5052 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.913e-05/0.1279, allocations: 19.94 kB / 0.5053 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.1279, allocations: 8 kB / 0.5053 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007108/0.1286, allocations: 254.1 kB / 0.5055 GB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.1305, allocations: 1.135 MB / 0.5066 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000748/0.1312, allocations: 173.1 kB / 0.5068 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002571/0.1315, allocations: 77.66 kB / 0.5069 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.1315, allocations: 7.938 kB / 0.5069 GB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.1316, allocations: 34.56 kB / 0.5069 GB, free: 7.016 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.1316, allocations: 4 kB / 0.5069 GB, free: 7.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009839/0.1326, allocations: 297.4 kB / 0.5072 GB, free: 6.715 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002438/0.1328, allocations: 444.9 kB / 0.5076 GB, free: 6.176 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008026/0.1336, allocations: 0.6371 MB / 0.5082 GB, free: 5.527 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.1337, allocations: 33.7 kB / 0.5083 GB, free: 5.488 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002642/0.134, allocations: 320.4 kB / 0.5086 GB, free: 5.168 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.15e-05/0.134, allocations: 43.64 kB / 0.5086 GB, free: 5.125 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.1342, allocations: 49.66 kB / 0.5087 GB, free: 5.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.1344, allocations: 358.8 kB / 0.509 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002838/0.1347, allocations: 71.94 kB / 0.5091 GB, free: 4.641 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003808/0.1351, allocations: 186.5 kB / 0.5092 GB, free: 4.406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005149/0.1356, allocations: 158.4 kB / 0.5094 GB, free: 4.242 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1356, allocations: 0 / 0.5094 GB, free: 4.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007082/0.1363, allocations: 253.4 kB / 0.5096 GB, free: 3.988 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1364, allocations: 4.094 kB / 0.5096 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.1364, allocations: 3.984 kB / 0.5096 GB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.632e-05/0.1364, allocations: 11.92 kB / 0.5097 GB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/0.1367, allocations: 43.89 kB / 0.5097 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1367, allocations: 0 / 0.5097 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003499/0.137, allocations: 51.88 kB / 0.5097 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.1371, allocations: 4 kB / 0.5098 GB, free: 3.871 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.0002638/0.1373, allocations: 178.4 kB / 0.5099 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.1375, allocations: 63.62 kB / 0.51 GB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005532/0.138, allocations: 194.9 kB / 0.5102 GB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.138, allocations: 8 kB / 0.5102 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.1381, allocations: 4 kB / 0.5102 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.1381, allocations: 0 / 0.5102 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006753/0.1387, allocations: 477.2 kB / 0.5106 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1388, allocations: 0 / 0.5106 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002101/0.139, allocations: 31.97 kB / 0.5107 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.139, allocations: 0 / 0.5107 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.139, allocations: 11.92 kB / 0.5107 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.139, allocations: 0 / 0.5107 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.139, allocations: 0 / 0.5107 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000771/0.1398, allocations: 414.2 kB / 0.5111 GB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.14, allocations: 176.6 kB / 0.5112 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.201e-05/0.1401, allocations: 11.92 kB / 0.5113 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003586/0.1405, allocations: 43.95 kB / 0.5113 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.1e-05/0.1405, allocations: 7.984 kB / 0.5113 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.1406, allocations: 4 kB / 0.5113 GB, free: 2.176 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005903/0.1412, allocations: 463 kB / 0.5117 GB, free: 1.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1412, allocations: 0 / 0.5117 GB, free: 1.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004498/0.1416, allocations: 103.7 kB / 0.5118 GB, free: 1.629 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.002377/0.144, allocations: 1.19 MB / 0.513 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000649/0.1447, allocations: 167.8 kB / 0.5132 GB, free: 392 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1447, allocations: 4.062 kB / 0.5132 GB, free: 388 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002749/0.145, allocations: 79.88 kB / 0.5132 GB, free: 308 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008208/0.1458, allocations: 152.6 kB / 0.5134 GB, free: 160 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.006114/0.1519, allocations: 3.692 MB / 0.517 GB, free: 12.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005908/0.1525, allocations: 0.8855 MB / 0.5179 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002505/0.1528, allocations: 67.42 kB / 0.5179 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002811/0.1531, allocations: 195.4 kB / 0.5181 GB, free: 11.19 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1531, allocations: 0 / 0.5181 GB, free: 11.19 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2864/0.4395, allocations: 10.12 MB / 0.528 GB, free: 1.266 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.155/9.595, allocations: 2.344 kB / 0.528 GB, free: 1.266 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)