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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 107.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.525/1.525, allocations: 225.6 MB / 247.8 MB, free: 3.738 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.17/0.17, allocations: 31.61 MB / 334.3 MB, free: 15.32 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 63.41 kB / 467.2 MB, free: 37.46 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1177, allocations: 59.5 MB / 0.5143 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.009123/0.1268, allocations: 7.009 MB / 0.5212 GB, free: 6.887 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004018/0.1309, allocations: 2.185 MB / 0.5233 GB, free: 4.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009466/0.1318, allocations: 23.88 kB / 0.5233 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005155/0.1323, allocations: 166.6 kB / 0.5235 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005132/0.1328, allocations: 150.8 kB / 0.5236 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008748/0.1337, allocations: 330 kB / 0.524 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008199/0.1345, allocations: 0.7183 MB / 0.5247 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004585/0.135, allocations: 260.7 kB / 0.5249 GB, free: 3.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002954/0.1353, allocations: 238.8 kB / 0.5251 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002485/0.1355, allocations: 250.4 kB / 0.5254 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.298e-05/0.1356, allocations: 44 kB / 0.5254 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001729/0.1358, allocations: 83.98 kB / 0.5255 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.136, allocations: 155.3 kB / 0.5256 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002414/0.1362, allocations: 286 kB / 0.5259 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000765/0.137, allocations: 0.6453 MB / 0.5265 GB, free: 1.367 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.137, allocations: 0 / 0.5265 GB, free: 1.367 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.137, allocations: 0 / 0.5265 GB, free: 1.367 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.137, allocations: 0 / 0.5265 GB, free: 1.367 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.001574/0.1385, allocations: 1.015 MB / 0.5275 GB, free: 308 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.1386, allocations: 15.97 kB / 0.5276 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.651e-05/0.1387, allocations: 82.45 kB / 0.5276 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002788/0.139, allocations: 103.4 kB / 0.5277 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008418/0.1398, allocations: 0.4916 MB / 0.5282 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/0.1398, allocations: 29 kB / 0.5282 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.772e-05/0.1399, allocations: 36 kB / 0.5283 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008311/0.1407, allocations: 473.2 kB / 0.5287 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1408, allocations: 0 / 0.5287 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.1408, allocations: 19.94 kB / 0.5287 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.1408, allocations: 11.94 kB / 0.5288 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006768/0.1415, allocations: 254.1 kB / 0.529 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.1434, allocations: 1.123 MB / 0.5301 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007003/0.1441, allocations: 173.1 kB / 0.5303 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.1443, allocations: 81.67 kB / 0.5303 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.304e-05/0.1443, allocations: 7.922 kB / 0.5303 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.1444, allocations: 34.56 kB / 0.5304 GB, free: 13.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.823e-06/0.1444, allocations: 4 kB / 0.5304 GB, free: 13.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009444/0.1453, allocations: 297.2 kB / 0.5307 GB, free: 12.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002614/0.1456, allocations: 441 kB / 0.5311 GB, free: 12.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007912/0.1464, allocations: 0.6332 MB / 0.5317 GB, free: 11.72 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.1464, allocations: 41.69 kB / 0.5317 GB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.1467, allocations: 316.5 kB / 0.532 GB, free: 11.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.335e-05/0.1467, allocations: 43.8 kB / 0.5321 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.1468, allocations: 53.64 kB / 0.5321 GB, free: 11.26 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.147, allocations: 354.8 kB / 0.5325 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002477/0.1472, allocations: 67.94 kB / 0.5325 GB, free: 10.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003736/0.1476, allocations: 202.3 kB / 0.5327 GB, free: 10.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004619/0.1481, allocations: 150.5 kB / 0.5329 GB, free: 10.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1481, allocations: 0 / 0.5329 GB, free: 10.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006505/0.1487, allocations: 253.2 kB / 0.5331 GB, free: 10.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.1488, allocations: 8 kB / 0.5331 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.1488, allocations: 0 / 0.5331 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.1488, allocations: 3.938 kB / 0.5331 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.149, allocations: 39.95 kB / 0.5332 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.149, allocations: 11.88 kB / 0.5332 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.1494, allocations: 51.84 kB / 0.5332 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.1494, allocations: 7.984 kB / 0.5332 GB, free: 10.05 MB / 398.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.0002266/0.1496, allocations: 178.4 kB / 0.5334 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.1497, allocations: 59.62 kB / 0.5335 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004893/0.1502, allocations: 194.6 kB / 0.5336 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1502, allocations: 8 kB / 0.5337 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1502, allocations: 240 / 0.5337 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1502, allocations: 0 / 0.5337 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005919/0.1508, allocations: 473.2 kB / 0.5341 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.1508, allocations: 7.969 kB / 0.5341 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001973/0.151, allocations: 31.97 kB / 0.5341 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.151, allocations: 0 / 0.5341 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.151, allocations: 3.938 kB / 0.5341 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.151, allocations: 4 kB / 0.5342 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.151, allocations: 0 / 0.5342 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006493/0.1517, allocations: 406.3 kB / 0.5345 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002511/0.1519, allocations: 180.5 kB / 0.5347 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.865e-05/0.152, allocations: 8.031 kB / 0.5347 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003555/0.1523, allocations: 43.89 kB / 0.5348 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.831e-05/0.1524, allocations: 11.98 kB / 0.5348 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.1524, allocations: 8 kB / 0.5348 GB, free: 8.367 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005495/0.153, allocations: 463 kB / 0.5352 GB, free: 7.922 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.153, allocations: 0 / 0.5352 GB, free: 7.922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004212/0.1534, allocations: 99.67 kB / 0.5353 GB, free: 7.824 MB / 398.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.002128/0.1555, allocations: 1.208 MB / 0.5365 GB, free: 6.734 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005958/0.1561, allocations: 155.8 kB / 0.5366 GB, free: 6.582 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.1561, allocations: 64 / 0.5366 GB, free: 6.582 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002541/0.1564, allocations: 87.88 kB / 0.5367 GB, free: 6.496 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00077/0.1571, allocations: 146.9 kB / 0.5369 GB, free: 6.352 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.005414/0.1625, allocations: 3.674 MB / 0.5405 GB, free: 2.574 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005417/0.1631, allocations: 0.8855 MB / 0.5413 GB, free: 1.664 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002443/0.1633, allocations: 71.2 kB / 0.5414 GB, free: 1.594 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.1636, allocations: 191.4 kB / 0.5416 GB, free: 1.406 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1636, allocations: 0 / 0.5416 GB, free: 1.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3001/0.4637, allocations: 10.19 MB / 0.5515 GB, free: 7.391 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.803/9.267, allocations: 7.922 kB / 0.5515 GB, free: 7.383 MB / 414.1 MB " [Timeout remaining time 649] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.119873262010515] Failed to read output from testmodel.py, exit status != 0: 10.565244090743363 10.581180577 10.441087307 Calling exit ...