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.001727/0.001727, allocations: 103.8 kB / 16.45 MB, free: 6.449 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.002022/0.002022, allocations: 212 kB / 19.43 MB, free: 3.637 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.553/1.553, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1731/0.1731, allocations: 31.59 MB / 340.4 MB, free: 5.277 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-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.002025/0.002025, allocations: 71.89 kB / 475.7 MB, free: 2.215 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4171/0.4191, allocations: 60.66 MB / 0.5238 GB, free: 6.926 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007786/0.4269, allocations: 7.1 MB / 0.5307 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004594/0.4315, allocations: 2.281 MB / 0.5329 GB, free: 224 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00207/0.4336, allocations: 32.62 kB / 0.533 GB, free: 204 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007059/0.4343, allocations: 167.6 kB / 0.5331 GB, free: 96 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009459/0.4352, allocations: 193.6 kB / 0.5333 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.4364, allocations: 328.8 kB / 0.5336 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001094/0.4375, allocations: 0.7365 MB / 0.5344 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004901/0.438, allocations: 250.6 kB / 0.5346 GB, free: 15.26 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003737/0.4384, allocations: 252.7 kB / 0.5348 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002803/0.4386, allocations: 252.5 kB / 0.5351 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.753e-05/0.4387, allocations: 45.5 kB / 0.5351 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002154/0.4389, allocations: 91.55 kB / 0.5352 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001909/0.4391, allocations: 149.1 kB / 0.5353 GB, free: 14.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002696/0.4394, allocations: 294.9 kB / 0.5356 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009602/0.4404, allocations: 0.6533 MB / 0.5363 GB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.4404, allocations: 1.031 kB / 0.5363 GB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4404, allocations: 4 kB / 0.5363 GB, free: 14.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.4404, allocations: 0 / 0.5363 GB, free: 14.32 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.00185/0.4422, allocations: 1.023 MB / 0.5373 GB, free: 13.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.4423, allocations: 10.45 kB / 0.5373 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.4424, allocations: 75.89 kB / 0.5374 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003459/0.4427, allocations: 104 kB / 0.5374 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009731/0.4437, allocations: 0.4998 MB / 0.5379 GB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.711e-05/0.4437, allocations: 28.72 kB / 0.538 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.777e-05/0.4438, allocations: 35.91 kB / 0.538 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.4448, allocations: 469.4 kB / 0.5384 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.4448, allocations: 3.984 kB / 0.5385 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.797e-05/0.4449, allocations: 24.56 kB / 0.5385 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.4449, allocations: 9.062 kB / 0.5385 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007789/0.4457, allocations: 257.6 kB / 0.5387 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.4478, allocations: 1.114 MB / 0.5398 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007557/0.4486, allocations: 172 kB / 0.54 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002614/0.4489, allocations: 83.78 kB / 0.5401 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.4489, allocations: 9.016 kB / 0.5401 GB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.4489, allocations: 37.84 kB / 0.5401 GB, free: 11.49 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 2.124e-06/0.4489, allocations: 3.938 kB / 0.5401 GB, free: 11.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001008/0.4499, allocations: 298.2 kB / 0.5404 GB, free: 11.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002699/0.4502, allocations: 445.3 kB / 0.5408 GB, free: 10.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009345/0.4511, allocations: 0.6512 MB / 0.5415 GB, free: 10.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.977e-05/0.4512, allocations: 31.48 kB / 0.5415 GB, free: 10.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002738/0.4515, allocations: 315.1 kB / 0.5418 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.146e-05/0.4515, allocations: 41.11 kB / 0.5418 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.4516, allocations: 59.8 kB / 0.5419 GB, free: 10.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.4519, allocations: 361.1 kB / 0.5422 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002667/0.4521, allocations: 69.66 kB / 0.5423 GB, free: 9.645 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003896/0.4525, allocations: 193.6 kB / 0.5425 GB, free: 9.457 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005176/0.453, allocations: 160.6 kB / 0.5426 GB, free: 9.363 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.453, allocations: 0 / 0.5426 GB, free: 9.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007123/0.4537, allocations: 250.3 kB / 0.5429 GB, free: 9.223 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.4538, allocations: 9.188 kB / 0.5429 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.4538, allocations: 1.344 kB / 0.5429 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.4538, allocations: 8.969 kB / 0.5429 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002783/0.4541, allocations: 40.14 kB / 0.5429 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.4541, allocations: 1.656 kB / 0.5429 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003846/0.4545, allocations: 43.31 kB / 0.543 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.4545, allocations: 4.188 kB / 0.543 GB, free: 9.18 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.0002675/0.4547, allocations: 184.9 kB / 0.5431 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.4549, allocations: 64.52 kB / 0.5432 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005547/0.4554, allocations: 195.2 kB / 0.5434 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.4554, allocations: 5.109 kB / 0.5434 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.4554, allocations: 1.375 kB / 0.5434 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.4554, allocations: 0 / 0.5434 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006903/0.4561, allocations: 486.4 kB / 0.5439 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4561, allocations: 5.375 kB / 0.5439 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002129/0.4564, allocations: 33.91 kB / 0.5439 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.4564, allocations: 1.375 kB / 0.5439 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.4564, allocations: 9.312 kB / 0.5439 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.4564, allocations: 1.375 kB / 0.5439 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4564, allocations: 0 / 0.5439 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007362/0.4571, allocations: 412.1 kB / 0.5443 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002464/0.4574, allocations: 172.1 kB / 0.5445 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.385e-05/0.4574, allocations: 12.06 kB / 0.5445 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000373/0.4578, allocations: 37.95 kB / 0.5445 GB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.227e-05/0.4579, allocations: 16.14 kB / 0.5445 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.4579, allocations: 10.67 kB / 0.5445 GB, free: 7.918 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006472/0.4585, allocations: 463.1 kB / 0.545 GB, free: 7.672 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4585, allocations: 0 / 0.545 GB, free: 7.672 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004935/0.459, allocations: 107.6 kB / 0.5451 GB, free: 7.641 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.00233/0.4614, allocations: 1.193 MB / 0.5463 GB, free: 6.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006713/0.462, allocations: 160.7 kB / 0.5464 GB, free: 6.637 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.462, allocations: 1.094 kB / 0.5464 GB, free: 6.637 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002806/0.4623, allocations: 82.22 kB / 0.5465 GB, free: 6.598 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008752/0.4632, allocations: 146.5 kB / 0.5466 GB, free: 6.52 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.006023/0.4692, allocations: 3.712 MB / 0.5503 GB, free: 4 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005714/0.4698, allocations: 0.8857 MB / 0.5511 GB, free: 3.215 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002779/0.4701, allocations: 66.58 kB / 0.5512 GB, free: 3.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002803/0.4703, allocations: 197.5 kB / 0.5514 GB, free: 3.012 MB / 398.1 MB Notification: Performance of SimCode: time 1.623e-06/0.4703, allocations: 0 / 0.5514 GB, free: 3.012 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2813/0.7517, allocations: 10.29 MB / 0.5614 GB, free: 11.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.802/9.553, allocations: 11.94 kB / 0.5614 GB, free: 11.51 MB / 414.1 MB " [Timeout remaining time 649] (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: 14.788888372015208] Failed to read output from testmodel.py, exit status != 0: 10.899891789071262 10.918052347 10.473082322 Calling exit ...