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.001482/0.001482, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001531/0.001531, allocations: 217.5 kB / 22.26 MB, free: 5.082 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.496/1.496, allocations: 230.6 MB / 256 MB, free: 7.996 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.1817/0.1817, allocations: 31.55 MB / 344 MB, free: 3.98 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.002033/0.002033, allocations: 64.09 kB / 480.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3313, allocations: 60.71 MB / 0.5288 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008425/0.3397, allocations: 7.136 MB / 0.5358 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004177/0.3439, allocations: 2.378 MB / 0.5381 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.345, allocations: 29.47 kB / 0.5382 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005485/0.3456, allocations: 168.2 kB / 0.5383 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006223/0.3462, allocations: 191.5 kB / 0.5385 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008166/0.347, allocations: 355.9 kB / 0.5388 GB, free: 412 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007034/0.3477, allocations: 0.7303 MB / 0.5396 GB, free: 20 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004684/0.3482, allocations: 246.2 kB / 0.5398 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003349/0.3485, allocations: 259.3 kB / 0.54 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002648/0.3488, allocations: 248 kB / 0.5403 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.366e-05/0.3488, allocations: 45 kB / 0.5403 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.349, allocations: 95.28 kB / 0.5404 GB, free: 15.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.3492, allocations: 146.6 kB / 0.5405 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000242/0.3494, allocations: 295.9 kB / 0.5408 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000806/0.3502, allocations: 0.6458 MB / 0.5415 GB, free: 14.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3502, allocations: 3.938 kB / 0.5415 GB, free: 14.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3502, allocations: 1.125 kB / 0.5415 GB, free: 14.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.3502, allocations: 0 / 0.5415 GB, free: 14.66 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.001573/0.3518, allocations: 0.962 MB / 0.5424 GB, free: 13.87 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.3518, allocations: 9.938 kB / 0.5424 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.262e-05/0.3519, allocations: 80.22 kB / 0.5425 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003232/0.3523, allocations: 102.6 kB / 0.5426 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008426/0.3531, allocations: 443.7 kB / 0.543 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.3531, allocations: 28.12 kB / 0.543 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.782e-05/0.3532, allocations: 31.38 kB / 0.5431 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008798/0.3541, allocations: 477 kB / 0.5435 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.3541, allocations: 0 / 0.5435 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.828e-05/0.3541, allocations: 20.06 kB / 0.5435 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.3541, allocations: 9.625 kB / 0.5436 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007167/0.3548, allocations: 257.1 kB / 0.5438 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.3568, allocations: 1.08 MB / 0.5449 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007546/0.3576, allocations: 179.2 kB / 0.545 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002668/0.3578, allocations: 71.55 kB / 0.5451 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.707e-05/0.3579, allocations: 5.297 kB / 0.5451 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.3579, allocations: 41.75 kB / 0.5451 GB, free: 11.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.3579, allocations: 5.312 kB / 0.5451 GB, free: 11.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001028/0.3589, allocations: 301.1 kB / 0.5454 GB, free: 11.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000306/0.3593, allocations: 448.5 kB / 0.5459 GB, free: 11.1 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000915/0.3602, allocations: 0.6472 MB / 0.5465 GB, free: 10.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.4e-05/0.3602, allocations: 28.36 kB / 0.5465 GB, free: 10.7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000275/0.3605, allocations: 319.7 kB / 0.5468 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.96e-05/0.3605, allocations: 40.39 kB / 0.5469 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.3606, allocations: 54.61 kB / 0.5469 GB, free: 10.35 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.3608, allocations: 358.7 kB / 0.5473 GB, free: 10 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002624/0.3611, allocations: 76.84 kB / 0.5473 GB, free: 9.965 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003764/0.3615, allocations: 184.4 kB / 0.5475 GB, free: 9.785 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005048/0.362, allocations: 159.9 kB / 0.5477 GB, free: 9.691 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.362, allocations: 0 / 0.5477 GB, free: 9.691 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006517/0.3626, allocations: 251.3 kB / 0.5479 GB, free: 9.551 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.3627, allocations: 5.062 kB / 0.5479 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3627, allocations: 1.406 kB / 0.5479 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/0.3627, allocations: 5.312 kB / 0.5479 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.363, allocations: 47.77 kB / 0.5479 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.363, allocations: 1.562 kB / 0.548 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003382/0.3633, allocations: 51.53 kB / 0.548 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.3633, allocations: 2.812 kB / 0.548 GB, free: 9.5 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.0002222/0.3636, allocations: 177.7 kB / 0.5482 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.3637, allocations: 59.34 kB / 0.5482 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005161/0.3642, allocations: 202.9 kB / 0.5484 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3642, allocations: 1.469 kB / 0.5484 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3642, allocations: 0 / 0.5484 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.3642, allocations: 1.469 kB / 0.5484 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006559/0.3648, allocations: 445.8 kB / 0.5488 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3648, allocations: 6.75 kB / 0.5489 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.365, allocations: 32.27 kB / 0.5489 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.3651, allocations: 1.219 kB / 0.5489 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.3651, allocations: 9.156 kB / 0.5489 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3651, allocations: 1.625 kB / 0.5489 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.3651, allocations: 5.547 kB / 0.5489 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006996/0.3658, allocations: 410.2 kB / 0.5493 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000245/0.366, allocations: 98.62 kB / 0.5494 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.774e-05/0.3661, allocations: 10.55 kB / 0.5494 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003671/0.3665, allocations: 38.08 kB / 0.5494 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.279e-05/0.3665, allocations: 16 kB / 0.5495 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.3665, allocations: 2.938 kB / 0.5495 GB, free: 8.383 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006548/0.3672, allocations: 466.2 kB / 0.5499 GB, free: 8.133 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3672, allocations: 0 / 0.5499 GB, free: 8.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004624/0.3677, allocations: 107.8 kB / 0.55 GB, free: 8.102 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.002319/0.37, allocations: 1.203 MB / 0.5512 GB, free: 7.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000664/0.3706, allocations: 164.2 kB / 0.5513 GB, free: 7.086 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3706, allocations: 1.188 kB / 0.5513 GB, free: 7.086 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000274/0.3709, allocations: 82.31 kB / 0.5514 GB, free: 7.047 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009185/0.3718, allocations: 138.2 kB / 0.5515 GB, free: 6.973 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.007858/0.3797, allocations: 3.711 MB / 0.5552 GB, free: 4.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007397/0.3804, allocations: 0.8873 MB / 0.556 GB, free: 3.676 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003768/0.3808, allocations: 56.56 kB / 0.5561 GB, free: 3.652 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003375/0.3811, allocations: 202.3 kB / 0.5563 GB, free: 3.48 MB / 398.1 MB Notification: Performance of SimCode: time 3.045e-06/0.3812, allocations: 1 kB / 0.5563 GB, free: 3.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3273/0.7085, allocations: 10.44 MB / 0.5665 GB, free: 10.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.58, allocations: 4 kB / 0.5665 GB, free: 10.31 MB / 414.1 MB " [Timeout remaining time 646] (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: 17.700152861994866] Failed to read output from testmodel.py, exit status != 0: 13.961277064998285 13.977696252 13.624169606 Calling exit ...