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.00172/0.00172, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001731/0.001731, allocations: 215.6 kB / 22.25 MB, free: 5.254 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.469/1.469, allocations: 230.6 MB / 256 MB, free: 7.793 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.1791/0.1791, allocations: 31.54 MB / 344 MB, free: 3.793 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_LookupFunctions",fmuType="me",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.002239/0.002239, allocations: 67.91 kB / 480.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3425, allocations: 60.71 MB / 0.5288 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007356/0.3498, allocations: 6.437 MB / 0.535 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003914/0.3537, allocations: 2.358 MB / 0.5374 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.3548, allocations: 29.16 kB / 0.5374 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005467/0.3553, allocations: 166.9 kB / 0.5375 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006665/0.356, allocations: 198.7 kB / 0.5377 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008747/0.3569, allocations: 338 kB / 0.5381 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007317/0.3576, allocations: 0.7184 MB / 0.5388 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003986/0.358, allocations: 250.4 kB / 0.539 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002622/0.3582, allocations: 252.9 kB / 0.5392 GB, free: 468 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001763/0.3584, allocations: 223.4 kB / 0.5394 GB, free: 292 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.479e-05/0.3585, allocations: 48.72 kB / 0.5395 GB, free: 288 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001858/0.3587, allocations: 80.73 kB / 0.5396 GB, free: 276 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.3588, allocations: 151 kB / 0.5397 GB, free: 156 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001704/0.359, allocations: 225.2 kB / 0.5399 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007951/0.3598, allocations: 0.656 MB / 0.5406 GB, free: 15.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3598, allocations: 4 kB / 0.5406 GB, free: 15.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3598, allocations: 1.406 kB / 0.5406 GB, free: 15.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.923e-05/0.3598, allocations: 0 / 0.5406 GB, free: 15.49 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.00159/0.3614, allocations: 0.9506 MB / 0.5415 GB, free: 14.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3614, allocations: 10.25 kB / 0.5415 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.15e-05/0.3615, allocations: 80 kB / 0.5416 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002717/0.3618, allocations: 98.3 kB / 0.5417 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008337/0.3626, allocations: 447.6 kB / 0.5421 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.3627, allocations: 28.12 kB / 0.5421 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.057e-05/0.3627, allocations: 31.38 kB / 0.5422 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.3638, allocations: 0.8211 MB / 0.543 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.3638, allocations: 3.938 kB / 0.543 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.417e-05/0.3639, allocations: 25.52 kB / 0.543 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.3639, allocations: 8.625 kB / 0.543 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007031/0.3646, allocations: 252.2 kB / 0.5432 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001896/0.3665, allocations: 0.9859 MB / 0.5442 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007225/0.3672, allocations: 171.8 kB / 0.5444 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002453/0.3675, allocations: 79.78 kB / 0.5444 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.3675, allocations: 1.156 kB / 0.5444 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.3675, allocations: 39.47 kB / 0.5445 GB, free: 12.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.552e-06/0.3675, allocations: 3.938 kB / 0.5445 GB, free: 12.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009383/0.3685, allocations: 298.2 kB / 0.5448 GB, free: 12.14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002707/0.3687, allocations: 452 kB / 0.5452 GB, free: 11.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007936/0.3695, allocations: 0.6375 MB / 0.5458 GB, free: 11.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.434e-05/0.3696, allocations: 33.08 kB / 0.5459 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.3698, allocations: 319.1 kB / 0.5462 GB, free: 10.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.223e-05/0.3699, allocations: 45.16 kB / 0.5462 GB, free: 10.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.37, allocations: 54.58 kB / 0.5463 GB, free: 10.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.3702, allocations: 359.7 kB / 0.5466 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002575/0.3704, allocations: 72.81 kB / 0.5467 GB, free: 10.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006075/0.371, allocations: 0.5431 MB / 0.5472 GB, free: 9.844 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004933/0.3715, allocations: 156.8 kB / 0.5474 GB, free: 9.754 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3715, allocations: 0 / 0.5474 GB, free: 9.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006686/0.3722, allocations: 253.6 kB / 0.5476 GB, free: 9.609 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.3722, allocations: 6.125 kB / 0.5476 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.3722, allocations: 1.625 kB / 0.5476 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.232e-05/0.3723, allocations: 5.094 kB / 0.5476 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.3725, allocations: 39.69 kB / 0.5476 GB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.3725, allocations: 9.25 kB / 0.5477 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003502/0.3729, allocations: 51.41 kB / 0.5477 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.3729, allocations: 8.078 kB / 0.5477 GB, free: 9.555 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.0002433/0.3731, allocations: 177 kB / 0.5479 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.3732, allocations: 60.16 kB / 0.5479 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000509/0.3737, allocations: 194.5 kB / 0.5481 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3738, allocations: 1.125 kB / 0.5481 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3738, allocations: 5.312 kB / 0.5481 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3738, allocations: 0 / 0.5481 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005955/0.3744, allocations: 410.7 kB / 0.5485 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3744, allocations: 0 / 0.5485 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001986/0.3746, allocations: 35.39 kB / 0.5486 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3746, allocations: 1.25 kB / 0.5486 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.3746, allocations: 9.281 kB / 0.5486 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3746, allocations: 1.312 kB / 0.5486 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3746, allocations: 0 / 0.5486 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006815/0.3753, allocations: 413.6 kB / 0.549 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002431/0.3755, allocations: 92.72 kB / 0.549 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.472e-05/0.3756, allocations: 11.28 kB / 0.5491 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003563/0.3759, allocations: 33.58 kB / 0.5491 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.444e-05/0.376, allocations: 16.34 kB / 0.5491 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.376, allocations: 6.391 kB / 0.5491 GB, free: 8.488 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005903/0.3766, allocations: 466.3 kB / 0.5496 GB, free: 8.238 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3766, allocations: 0 / 0.5496 GB, free: 8.238 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004401/0.377, allocations: 102.5 kB / 0.5497 GB, free: 8.211 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.002292/0.3793, allocations: 1.221 MB / 0.5508 GB, free: 7.273 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005916/0.3799, allocations: 164.7 kB / 0.551 GB, free: 7.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.3799, allocations: 5.406 kB / 0.551 GB, free: 7.195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002713/0.3802, allocations: 85.5 kB / 0.5511 GB, free: 7.152 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008256/0.381, allocations: 134.6 kB / 0.5512 GB, free: 7.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005849/0.3869, allocations: 3.693 MB / 0.5548 GB, free: 4.594 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.3872, allocations: 290.4 kB / 0.5551 GB, free: 4.414 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002799/0.3875, allocations: 69.94 kB / 0.5552 GB, free: 4.379 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002828/0.3877, allocations: 198.3 kB / 0.5554 GB, free: 4.211 MB / 398.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3877, allocations: 0 / 0.5554 GB, free: 4.211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04514/0.4329, allocations: 11.88 MB / 0.567 GB, free: 9.398 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.26, allocations: 8 kB / 0.567 GB, free: 9.391 MB / 414.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file BusinessSimulation_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_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.356969388667494] Failed to read output from testmodel.py, exit status != 0: 12.430142561905086 12.450981227 12.087601864 Calling exit ...