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.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.001747/0.001747, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.002018/0.002018, allocations: 210.2 kB / 20.13 MB, free: 2.949 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.443/1.443, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.1738/0.1738, allocations: 31.55 MB / 341.1 MB, free: 9.996 MB / 270.1 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/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_dev_BusinessSimulation_Examples_LookupFunctions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_dev_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.002054/0.002054, allocations: 62.78 kB / 476.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1226, allocations: 60.68 MB / 0.5244 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.01301/0.1356, allocations: 7.104 MB / 0.5314 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004616/0.1402, allocations: 2.29 MB / 0.5336 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001119/0.1414, allocations: 27.75 kB / 0.5336 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007024/0.1421, allocations: 170.5 kB / 0.5338 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009269/0.143, allocations: 194.7 kB / 0.534 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.1441, allocations: 327.2 kB / 0.5343 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.1453, allocations: 0.7263 MB / 0.535 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007147/0.146, allocations: 252.8 kB / 0.5352 GB, free: 8.984 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004818/0.1465, allocations: 250.7 kB / 0.5355 GB, free: 8.738 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004091/0.1469, allocations: 254.4 kB / 0.5357 GB, free: 8.488 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001521/0.147, allocations: 44 kB / 0.5358 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002779/0.1473, allocations: 87.97 kB / 0.5358 GB, free: 8.359 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001946/0.1475, allocations: 151.3 kB / 0.536 GB, free: 8.211 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003178/0.1478, allocations: 294 kB / 0.5363 GB, free: 7.922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009676/0.1488, allocations: 0.6453 MB / 0.5369 GB, free: 7.273 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1488, allocations: 3.938 kB / 0.5369 GB, free: 7.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1488, allocations: 0 / 0.5369 GB, free: 7.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.036e-05/0.1488, allocations: 0 / 0.5369 GB, free: 7.27 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.002027/0.1509, allocations: 1.031 MB / 0.5379 GB, free: 6.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.1509, allocations: 8.031 kB / 0.5379 GB, free: 6.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.404e-05/0.1509, allocations: 12.94 kB / 0.5379 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001164/0.1511, allocations: 78.53 kB / 0.538 GB, free: 6.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003685/0.1514, allocations: 99.42 kB / 0.5381 GB, free: 5.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/0.1524, allocations: 0.5033 MB / 0.5386 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/0.1525, allocations: 25 kB / 0.5386 GB, free: 5.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.017e-05/0.1525, allocations: 36 kB / 0.5387 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009502/0.1535, allocations: 476 kB / 0.5391 GB, free: 4.859 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.1535, allocations: 3.938 kB / 0.5391 GB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.754e-05/0.1535, allocations: 16 kB / 0.5391 GB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.1536, allocations: 19.94 kB / 0.5391 GB, free: 4.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007482/0.1543, allocations: 256.9 kB / 0.5394 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.1565, allocations: 1.131 MB / 0.5405 GB, free: 3.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007804/0.1573, allocations: 169.1 kB / 0.5407 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002731/0.1575, allocations: 73.67 kB / 0.5407 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.1576, allocations: 7.938 kB / 0.5407 GB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.1576, allocations: 38.5 kB / 0.5408 GB, free: 3.066 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 2.114e-06/0.1576, allocations: 0 / 0.5408 GB, free: 3.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001053/0.1587, allocations: 309.3 kB / 0.5411 GB, free: 2.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002907/0.1589, allocations: 448.9 kB / 0.5415 GB, free: 2.215 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009567/0.1599, allocations: 0.641 MB / 0.5421 GB, free: 1.562 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.002e-05/0.16, allocations: 33.7 kB / 0.5422 GB, free: 1.523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.1602, allocations: 320.5 kB / 0.5425 GB, free: 1.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.75e-05/0.1603, allocations: 35.7 kB / 0.5425 GB, free: 1.168 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.1604, allocations: 61.59 kB / 0.5425 GB, free: 1.102 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.1606, allocations: 358.8 kB / 0.5429 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.1609, allocations: 67.95 kB / 0.543 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003857/0.1613, allocations: 186.5 kB / 0.5431 GB, free: 452 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005337/0.1618, allocations: 158.5 kB / 0.5433 GB, free: 284 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1618, allocations: 0 / 0.5433 GB, free: 284 kB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007373/0.1625, allocations: 245.1 kB / 0.5435 GB, free: 32 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.1625, allocations: 8 kB / 0.5435 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1626, allocations: 7.922 kB / 0.5435 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.1626, allocations: 4.031 kB / 0.5435 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002824/0.1629, allocations: 39.97 kB / 0.5436 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.1629, allocations: 7.938 kB / 0.5436 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003837/0.1633, allocations: 43.84 kB / 0.5436 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.1633, allocations: 12.08 kB / 0.5436 GB, free: 15.91 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.0002842/0.1636, allocations: 182.3 kB / 0.5438 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.1637, allocations: 59.62 kB / 0.5439 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005628/0.1643, allocations: 195 kB / 0.5441 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.1643, allocations: 4 kB / 0.5441 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1643, allocations: 0 / 0.5441 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.1643, allocations: 0 / 0.5441 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006995/0.165, allocations: 473.2 kB / 0.5445 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.902e-06/0.165, allocations: 12 kB / 0.5445 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002229/0.1652, allocations: 31.97 kB / 0.5446 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1652, allocations: 0 / 0.5446 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.1652, allocations: 11.92 kB / 0.5446 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.1652, allocations: 0 / 0.5446 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1652, allocations: 0 / 0.5446 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007736/0.166, allocations: 414.5 kB / 0.545 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002568/0.1663, allocations: 176.5 kB / 0.5451 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.122e-05/0.1663, allocations: 15.92 kB / 0.5451 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003796/0.1667, allocations: 35.95 kB / 0.5452 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.1668, allocations: 11.98 kB / 0.5452 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.1668, allocations: 4 kB / 0.5452 GB, free: 14.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006501/0.1674, allocations: 467 kB / 0.5456 GB, free: 13.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1674, allocations: 0 / 0.5456 GB, free: 13.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004752/0.1679, allocations: 107.7 kB / 0.5457 GB, free: 13.66 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.002398/0.1703, allocations: 1.199 MB / 0.5469 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008946/0.1712, allocations: 163.8 kB / 0.5471 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.1712, allocations: 0 / 0.5471 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003904/0.1716, allocations: 75.88 kB / 0.5471 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.1727, allocations: 142.5 kB / 0.5473 GB, free: 12.23 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.006419/0.1792, allocations: 3.724 MB / 0.5509 GB, free: 8.406 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006337/0.1798, allocations: 0.8893 MB / 0.5518 GB, free: 7.492 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000262/0.1801, allocations: 67.45 kB / 0.5518 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.1804, allocations: 203.4 kB / 0.552 GB, free: 7.223 MB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.1804, allocations: 0 / 0.552 GB, free: 7.223 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3021/0.4824, allocations: 10.32 MB / 0.5621 GB, free: 13.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.624/10.11, allocations: 4.062 kB / 0.5621 GB, free: 13.09 MB / 430.1 MB " [Timeout remaining time 648] (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.997177303011995] Failed to read output from testmodel.py, exit status != 0: 11.559781839023344 11.57504487 11.423104867 Calling exit ...