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.001859/0.001859, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002475/0.002475, allocations: 213.5 kB / 22.24 MB, free: 5.242 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.498/1.498, 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 main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.1823/0.1823, allocations: 31.55 MB / 344 MB, free: 3.754 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="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: 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.002084/0.002084, allocations: 63.89 kB / 480.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3192, allocations: 60.71 MB / 0.5288 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007994/0.3272, allocations: 6.44 MB / 0.535 GB, free: 3.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003768/0.331, allocations: 2.354 MB / 0.5373 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007598/0.3318, allocations: 28.59 kB / 0.5374 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004612/0.3322, allocations: 168.1 kB / 0.5375 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000549/0.3328, allocations: 194 kB / 0.5377 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007174/0.3335, allocations: 342.3 kB / 0.538 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006249/0.3341, allocations: 0.7224 MB / 0.5387 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003804/0.3345, allocations: 241.4 kB / 0.539 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002399/0.3347, allocations: 255.9 kB / 0.5392 GB, free: 448 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.3349, allocations: 223.7 kB / 0.5394 GB, free: 272 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.409e-05/0.335, allocations: 44.94 kB / 0.5395 GB, free: 272 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.3352, allocations: 84.38 kB / 0.5396 GB, free: 256 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.3353, allocations: 155 kB / 0.5397 GB, free: 132 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.3354, allocations: 227.6 kB / 0.5399 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007311/0.3362, allocations: 0.6532 MB / 0.5406 GB, free: 15.47 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3362, allocations: 0 / 0.5406 GB, free: 15.47 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3362, allocations: 1.375 kB / 0.5406 GB, free: 15.47 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.3362, allocations: 0 / 0.5406 GB, free: 15.47 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.001474/0.3377, allocations: 0.9576 MB / 0.5415 GB, free: 14.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3377, allocations: 10.34 kB / 0.5415 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.898e-05/0.3378, allocations: 80.22 kB / 0.5416 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000262/0.338, allocations: 103.5 kB / 0.5417 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007479/0.3388, allocations: 442 kB / 0.5421 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.3388, allocations: 28.62 kB / 0.5421 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.155e-05/0.3389, allocations: 31.09 kB / 0.5422 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.3399, allocations: 0.818 MB / 0.543 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.3399, allocations: 4 kB / 0.543 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.359e-05/0.34, allocations: 21.44 kB / 0.543 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.34, allocations: 9.031 kB / 0.543 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006872/0.3407, allocations: 248 kB / 0.5432 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.3425, allocations: 0.9909 MB / 0.5442 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007173/0.3432, allocations: 171.8 kB / 0.5444 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002611/0.3435, allocations: 71.8 kB / 0.5444 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.3435, allocations: 6.141 kB / 0.5444 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.25e-05/0.3436, allocations: 37.97 kB / 0.5445 GB, free: 12.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.843e-06/0.3436, allocations: 4 kB / 0.5445 GB, free: 12.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009433/0.3445, allocations: 302.1 kB / 0.5448 GB, free: 12.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002647/0.3448, allocations: 445.4 kB / 0.5452 GB, free: 11.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007783/0.3456, allocations: 0.641 MB / 0.5458 GB, free: 11.22 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.3456, allocations: 32.58 kB / 0.5458 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002612/0.3459, allocations: 323.9 kB / 0.5462 GB, free: 10.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.848e-05/0.3459, allocations: 44.53 kB / 0.5462 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.346, allocations: 55.7 kB / 0.5462 GB, free: 10.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.3462, allocations: 359.1 kB / 0.5466 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.3465, allocations: 67.98 kB / 0.5467 GB, free: 10.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005917/0.347, allocations: 0.5466 MB / 0.5472 GB, free: 9.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004967/0.3475, allocations: 160.7 kB / 0.5473 GB, free: 9.727 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3475, allocations: 3.938 kB / 0.5473 GB, free: 9.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006387/0.3482, allocations: 248.1 kB / 0.5476 GB, free: 9.586 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.3482, allocations: 11.09 kB / 0.5476 GB, free: 9.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.3482, allocations: 0 / 0.5476 GB, free: 9.582 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.3482, allocations: 3.938 kB / 0.5476 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/0.3485, allocations: 44.08 kB / 0.5476 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.3485, allocations: 1.406 kB / 0.5476 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.3488, allocations: 47.41 kB / 0.5477 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.3488, allocations: 3.688 kB / 0.5477 GB, free: 9.539 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.0002284/0.349, allocations: 181.4 kB / 0.5479 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.3492, allocations: 64.08 kB / 0.5479 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005046/0.3497, allocations: 190.9 kB / 0.5481 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.3497, allocations: 1.438 kB / 0.5481 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3497, allocations: 3.984 kB / 0.5481 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3497, allocations: 1.406 kB / 0.5481 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005646/0.3502, allocations: 409.8 kB / 0.5485 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3503, allocations: 8 kB / 0.5485 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.3505, allocations: 31.12 kB / 0.5485 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3505, allocations: 1.188 kB / 0.5485 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.3505, allocations: 9.688 kB / 0.5486 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.3505, allocations: 5.438 kB / 0.5486 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3505, allocations: 0 / 0.5486 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006943/0.3512, allocations: 408.5 kB / 0.5489 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/0.3514, allocations: 97.36 kB / 0.549 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.533e-05/0.3515, allocations: 12.31 kB / 0.549 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003491/0.3518, allocations: 33.8 kB / 0.5491 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.3519, allocations: 10.77 kB / 0.5491 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.3519, allocations: 6.922 kB / 0.5491 GB, free: 8.465 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005434/0.3524, allocations: 461.5 kB / 0.5495 GB, free: 8.219 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3524, allocations: 1.156 kB / 0.5495 GB, free: 8.219 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004272/0.3529, allocations: 110.4 kB / 0.5496 GB, free: 8.184 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.002282/0.3551, allocations: 1.221 MB / 0.5508 GB, free: 7.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005971/0.3557, allocations: 159.9 kB / 0.551 GB, free: 7.172 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.3557, allocations: 6.406 kB / 0.551 GB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.356, allocations: 85.38 kB / 0.5511 GB, free: 7.125 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008083/0.3568, allocations: 142.9 kB / 0.5512 GB, free: 7.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006082/0.3629, allocations: 3.69 MB / 0.5548 GB, free: 4.566 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.3633, allocations: 290.3 kB / 0.5551 GB, free: 4.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003406/0.3636, allocations: 58.36 kB / 0.5552 GB, free: 4.363 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/0.364, allocations: 202.5 kB / 0.5553 GB, free: 4.191 MB / 398.1 MB Notification: Performance of SimCode: time 1.563e-06/0.364, allocations: 4 kB / 0.5553 GB, free: 4.188 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04271/0.4067, allocations: 11.89 MB / 0.567 GB, free: 9.391 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.59, allocations: 8 kB / 0.567 GB, free: 9.383 MB / 414.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.711132827214897] Failed to read output from testmodel.py, exit status != 0: 12.774334264919162 12.798812263 12.458097532 Calling exit ...