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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 117.4 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.446/1.446, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1732/0.1732, allocations: 31.56 MB / 341.1 MB, free: 10 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/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_LookupFunctions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_LookupFunctions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003422/0.003422, allocations: 72.36 kB / 476.4 MB, free: 27.99 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1471, allocations: 60.67 MB / 0.5244 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.0104/0.1575, allocations: 7.092 MB / 0.5314 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004926/0.1624, allocations: 2.29 MB / 0.5336 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001405/0.1638, allocations: 31.69 kB / 0.5336 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007705/0.1646, allocations: 166.5 kB / 0.5338 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009569/0.1655, allocations: 198.7 kB / 0.534 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.1666, allocations: 334.1 kB / 0.5343 GB, free: 10 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00126/0.1679, allocations: 0.7186 MB / 0.535 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006854/0.1686, allocations: 256.7 kB / 0.5352 GB, free: 9.023 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004446/0.169, allocations: 246.8 kB / 0.5355 GB, free: 8.781 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003649/0.1694, allocations: 254.3 kB / 0.5357 GB, free: 8.531 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.1695, allocations: 44 kB / 0.5358 GB, free: 8.488 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002481/0.1698, allocations: 87.98 kB / 0.5358 GB, free: 8.402 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002299/0.17, allocations: 155.3 kB / 0.536 GB, free: 8.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003826/0.1704, allocations: 290 kB / 0.5363 GB, free: 7.965 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.1715, allocations: 0.6453 MB / 0.5369 GB, free: 7.316 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1715, allocations: 0 / 0.5369 GB, free: 7.316 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1715, allocations: 7.875 kB / 0.5369 GB, free: 7.309 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.178e-05/0.1716, allocations: 4 kB / 0.5369 GB, free: 7.305 MB / 398.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.002154/0.1737, allocations: 1.027 MB / 0.5379 GB, free: 6.227 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.1738, allocations: 12.03 kB / 0.5379 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.371e-05/0.1738, allocations: 12.94 kB / 0.5379 GB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.993e-05/0.1739, allocations: 74.53 kB / 0.538 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003594/0.1743, allocations: 103.4 kB / 0.5381 GB, free: 6.016 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009876/0.1753, allocations: 0.4955 MB / 0.5386 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.654e-05/0.1753, allocations: 33 kB / 0.5386 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.371e-05/0.1754, allocations: 39.98 kB / 0.5387 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.1764, allocations: 473.2 kB / 0.5391 GB, free: 4.891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.1764, allocations: 3.938 kB / 0.5391 GB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.775e-05/0.1764, allocations: 19.98 kB / 0.5391 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.1765, allocations: 8 kB / 0.5391 GB, free: 4.859 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007861/0.1772, allocations: 258 kB / 0.5394 GB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002305/0.1796, allocations: 1.123 MB / 0.5405 GB, free: 3.426 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008106/0.1804, allocations: 173.1 kB / 0.5407 GB, free: 3.238 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002648/0.1806, allocations: 73.67 kB / 0.5407 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.1807, allocations: 0 / 0.5407 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/0.1807, allocations: 42.5 kB / 0.5408 GB, free: 3.109 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.1807, allocations: 3.938 kB / 0.5408 GB, free: 3.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001046/0.1818, allocations: 301.2 kB / 0.5411 GB, free: 2.805 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002876/0.182, allocations: 448.9 kB / 0.5415 GB, free: 2.262 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009391/0.183, allocations: 0.6449 MB / 0.5421 GB, free: 1.605 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.183, allocations: 29.7 kB / 0.5421 GB, free: 1.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003087/0.1833, allocations: 332.6 kB / 0.5425 GB, free: 1.238 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.816e-05/0.1834, allocations: 35.69 kB / 0.5425 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.1835, allocations: 57.61 kB / 0.5425 GB, free: 1.141 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.1837, allocations: 358.8 kB / 0.5429 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002816/0.184, allocations: 67.95 kB / 0.543 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004002/0.1844, allocations: 186.5 kB / 0.5431 GB, free: 492 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005254/0.185, allocations: 158.7 kB / 0.5433 GB, free: 324 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.185, allocations: 3.938 kB / 0.5433 GB, free: 320 kB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007287/0.1857, allocations: 257.1 kB / 0.5435 GB, free: 56 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1857, allocations: 4 kB / 0.5435 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.1857, allocations: 7.938 kB / 0.5435 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.1857, allocations: 0 / 0.5435 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.186, allocations: 43.97 kB / 0.5436 GB, free: 0 / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.186, allocations: 0 / 0.5436 GB, free: 0 / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003811/0.1864, allocations: 47.83 kB / 0.5436 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.1864, allocations: 12 kB / 0.5436 GB, free: 15.94 MB / 414.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.000254/0.1867, allocations: 182.3 kB / 0.5438 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.1868, allocations: 59.62 kB / 0.5439 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000579/0.1874, allocations: 191.1 kB / 0.5441 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.1874, allocations: 0 / 0.5441 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.361e-06/0.1874, allocations: 4 kB / 0.5441 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1874, allocations: 7.938 kB / 0.5441 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007364/0.1881, allocations: 477.2 kB / 0.5445 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1881, allocations: 0 / 0.5445 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002166/0.1883, allocations: 35.97 kB / 0.5446 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.1884, allocations: 3.984 kB / 0.5446 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.1884, allocations: 3.938 kB / 0.5446 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1884, allocations: 4 kB / 0.5446 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1884, allocations: 0 / 0.5446 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000758/0.1891, allocations: 410.2 kB / 0.545 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002459/0.1894, allocations: 176.5 kB / 0.5451 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.95e-05/0.1895, allocations: 11.94 kB / 0.5451 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003739/0.1898, allocations: 43.95 kB / 0.5452 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.337e-05/0.1899, allocations: 7.984 kB / 0.5452 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.1899, allocations: 0 / 0.5452 GB, free: 14.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006245/0.1905, allocations: 467 kB / 0.5456 GB, free: 13.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1905, allocations: 0 / 0.5456 GB, free: 13.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004884/0.191, allocations: 107.7 kB / 0.5457 GB, free: 13.7 MB / 414.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.002461/0.1935, allocations: 1.203 MB / 0.5469 GB, free: 12.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006524/0.1941, allocations: 159.8 kB / 0.5471 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.1941, allocations: 0 / 0.5471 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002741/0.1944, allocations: 83.94 kB / 0.5471 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008449/0.1953, allocations: 143.8 kB / 0.5473 GB, free: 12.24 MB / 414.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.005982/0.2012, allocations: 3.721 MB / 0.5509 GB, free: 8.422 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005624/0.2018, allocations: 0.8854 MB / 0.5518 GB, free: 7.512 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002357/0.202, allocations: 71.42 kB / 0.5518 GB, free: 7.438 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002738/0.2023, allocations: 203.3 kB / 0.552 GB, free: 7.238 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2023, allocations: 0 / 0.552 GB, free: 7.238 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2918/0.4942, allocations: 10.3 MB / 0.5621 GB, free: 13.12 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.209/9.703, allocations: 8 kB / 0.5621 GB, free: 13.12 MB / 430.1 MB " [Timeout remaining time 649] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.512175356037915] Failed to read output from testmodel.py, exit status != 0: 11.145695632032584 11.164645306 10.989762183 Calling exit ...