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.001311/0.001311, allocations: 113 kB / 18.94 MB, free: 2.957 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.001674/0.001674, allocations: 213.6 kB / 22.25 MB, free: 5.117 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.466/1.466, allocations: 230.6 MB / 256 MB, free: 8.02 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.226/0.226, allocations: 31.56 MB / 344 MB, free: 3.984 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.002215/0.002215, allocations: 66.25 kB / 480.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3673, allocations: 60.72 MB / 0.5289 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008255/0.3756, allocations: 7.121 MB / 0.5358 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005396/0.381, allocations: 2.386 MB / 0.5381 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002094/0.3831, allocations: 28.41 kB / 0.5382 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008058/0.3839, allocations: 167.6 kB / 0.5383 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001008/0.3849, allocations: 192.8 kB / 0.5385 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001204/0.3861, allocations: 359.3 kB / 0.5389 GB, free: 412 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.3874, allocations: 0.7311 MB / 0.5396 GB, free: 20 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006986/0.388, allocations: 249.2 kB / 0.5398 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004254/0.3885, allocations: 260.6 kB / 0.5401 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003128/0.3888, allocations: 248.1 kB / 0.5403 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.714e-05/0.3889, allocations: 44.28 kB / 0.5403 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002575/0.3891, allocations: 90.75 kB / 0.5404 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001956/0.3893, allocations: 146.6 kB / 0.5406 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000289/0.3896, allocations: 296.8 kB / 0.5408 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.3907, allocations: 0.6459 MB / 0.5415 GB, free: 14.67 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3907, allocations: 3.938 kB / 0.5415 GB, free: 14.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3907, allocations: 0 / 0.5415 GB, free: 14.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.127e-05/0.3907, 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.001884/0.3926, allocations: 0.9627 MB / 0.5424 GB, free: 13.87 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.3926, allocations: 10.34 kB / 0.5424 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.3927, allocations: 78.84 kB / 0.5425 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003363/0.3931, allocations: 99.55 kB / 0.5426 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009259/0.394, allocations: 451.5 kB / 0.543 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.813e-05/0.394, allocations: 28.12 kB / 0.5431 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.307e-05/0.3941, allocations: 31.38 kB / 0.5431 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000972/0.3951, allocations: 467.8 kB / 0.5435 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.3951, allocations: 1.531 kB / 0.5435 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.374e-05/0.3951, allocations: 20.03 kB / 0.5435 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.3951, allocations: 16.53 kB / 0.5436 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007256/0.3959, allocations: 254 kB / 0.5438 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.3981, allocations: 1.079 MB / 0.5449 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000964/0.3991, allocations: 171.7 kB / 0.545 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/0.3994, allocations: 75.3 kB / 0.5451 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.334e-05/0.3994, allocations: 10.27 kB / 0.5451 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.494e-05/0.3994, allocations: 37.91 kB / 0.5451 GB, free: 11.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 2.875e-06/0.3994, allocations: 3.938 kB / 0.5451 GB, free: 11.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001119/0.4006, allocations: 306 kB / 0.5454 GB, free: 11.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002952/0.4009, allocations: 444 kB / 0.5459 GB, free: 11.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.402, allocations: 0.6469 MB / 0.5465 GB, free: 10.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.057e-05/0.402, allocations: 28.23 kB / 0.5465 GB, free: 10.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003078/0.4023, allocations: 321 kB / 0.5468 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.805e-05/0.4024, allocations: 39.89 kB / 0.5469 GB, free: 10.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.4025, allocations: 58.52 kB / 0.5469 GB, free: 10.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002059/0.4027, allocations: 359 kB / 0.5473 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002669/0.403, allocations: 73.06 kB / 0.5473 GB, free: 9.973 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003894/0.4034, allocations: 185.7 kB / 0.5475 GB, free: 9.793 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004932/0.4039, allocations: 160.8 kB / 0.5477 GB, free: 9.699 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.4039, allocations: 0 / 0.5477 GB, free: 9.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007315/0.4046, allocations: 250.1 kB / 0.5479 GB, free: 9.559 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.4046, allocations: 6.219 kB / 0.5479 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.4046, allocations: 4.031 kB / 0.5479 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.4046, allocations: 5.344 kB / 0.5479 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.4049, allocations: 44.98 kB / 0.548 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.4049, allocations: 5.375 kB / 0.548 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004348/0.4054, allocations: 47.03 kB / 0.548 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.4054, allocations: 4.375 kB / 0.548 GB, free: 9.508 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.0003195/0.4057, allocations: 179.7 kB / 0.5482 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.4059, allocations: 60.81 kB / 0.5482 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005663/0.4064, allocations: 193.9 kB / 0.5484 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.4064, allocations: 1.344 kB / 0.5484 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.4064, allocations: 1.188 kB / 0.5484 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.4064, allocations: 1.156 kB / 0.5484 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007696/0.4072, allocations: 449.6 kB / 0.5489 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4072, allocations: 4 kB / 0.5489 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.4074, allocations: 34.73 kB / 0.5489 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.4074, allocations: 1.156 kB / 0.5489 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.4075, allocations: 5.562 kB / 0.5489 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.4075, allocations: 1.281 kB / 0.5489 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4075, allocations: 1.094 kB / 0.5489 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007454/0.4082, allocations: 411.1 kB / 0.5493 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002691/0.4085, allocations: 97.81 kB / 0.5494 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.112e-05/0.4086, allocations: 10.61 kB / 0.5494 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000371/0.4089, allocations: 38.2 kB / 0.5494 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.003e-05/0.409, allocations: 16.38 kB / 0.5495 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.409, allocations: 6.938 kB / 0.5495 GB, free: 8.395 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000624/0.4096, allocations: 466.2 kB / 0.5499 GB, free: 8.145 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4096, allocations: 0 / 0.5499 GB, free: 8.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005215/0.4101, allocations: 103.7 kB / 0.55 GB, free: 8.117 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.002408/0.4126, allocations: 1.213 MB / 0.5512 GB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006929/0.4132, allocations: 169.5 kB / 0.5513 GB, free: 7.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.4133, allocations: 1.094 kB / 0.5513 GB, free: 7.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002723/0.4135, allocations: 77.34 kB / 0.5514 GB, free: 7.055 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009261/0.4145, allocations: 144.8 kB / 0.5516 GB, free: 6.977 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.00669/0.4211, allocations: 3.703 MB / 0.5552 GB, free: 4.473 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006568/0.4218, allocations: 0.8916 MB / 0.556 GB, free: 3.684 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003356/0.4221, allocations: 64.17 kB / 0.5561 GB, free: 3.652 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003012/0.4224, allocations: 198.7 kB / 0.5563 GB, free: 3.484 MB / 398.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4224, allocations: 0 / 0.5563 GB, free: 3.484 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3381/0.7606, allocations: 10.43 MB / 0.5665 GB, free: 10.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.62, allocations: 7.984 kB / 0.5665 GB, free: 10.3 MB / 414.1 MB " [Timeout remaining time 646] (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: 17.72548573599488] Failed to read output from testmodel.py, exit status != 0: 14.009099422000872 14.028042644 13.633714003 Calling exit ...