Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.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.001314/0.001314, 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.001506/0.001506, allocations: 212.2 kB / 22.24 MB, free: 5.258 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.453/1.453, allocations: 230.6 MB / 256 MB, free: 7.789 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.1744/0.1744, allocations: 31.55 MB / 344 MB, free: 3.789 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.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",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.002097/0.002097, allocations: 72.08 kB / 480.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3781/0.3802, allocations: 60.72 MB / 0.5288 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007191/0.3874, allocations: 6.362 MB / 0.535 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.3896, allocations: 0.9898 MB / 0.5359 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004323/0.39, allocations: 33.47 kB / 0.536 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003396/0.3903, allocations: 108.2 kB / 0.5361 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002404/0.3906, allocations: 83.92 kB / 0.5361 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006774/0.3913, allocations: 229.4 kB / 0.5364 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006025/0.3919, allocations: 0.5672 MB / 0.5369 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004048/0.3923, allocations: 206 kB / 0.5371 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002717/0.3925, allocations: 234.6 kB / 0.5373 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003008/0.3928, allocations: 206.8 kB / 0.5375 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.568e-05/0.3929, allocations: 56.06 kB / 0.5376 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001483/0.3931, allocations: 67.31 kB / 0.5377 GB, free: 1.625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.3932, allocations: 136.3 kB / 0.5378 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002224/0.3935, allocations: 211.1 kB / 0.538 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006841/0.3941, allocations: 0.5875 MB / 0.5386 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.3942, allocations: 0 / 0.5386 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3942, allocations: 0 / 0.5386 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.3942, allocations: 1.719 kB / 0.5386 GB, free: 0.9727 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001307/0.3955, allocations: 0.7226 MB / 0.5393 GB, free: 388 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.3955, allocations: 9.656 kB / 0.5393 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.246e-05/0.3956, allocations: 91.64 kB / 0.5394 GB, free: 304 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003621/0.396, allocations: 78.44 kB / 0.5394 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005777/0.3966, allocations: 341.1 kB / 0.5398 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.371e-05/0.3966, allocations: 45.88 kB / 0.5398 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.556e-05/0.3967, allocations: 57.12 kB / 0.5399 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000994/0.3977, allocations: 0.5415 MB / 0.5404 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.378e-05/0.3977, allocations: 1.406 kB / 0.5404 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.554e-05/0.3978, allocations: 20.41 kB / 0.5404 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.443e-05/0.3978, allocations: 12.59 kB / 0.5404 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008371/0.3987, allocations: 313 kB / 0.5407 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002866/0.4015, allocations: 1.644 MB / 0.5423 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007288/0.4022, allocations: 294.4 kB / 0.5426 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003454/0.4026, allocations: 168.5 kB / 0.5428 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.4026, allocations: 4.984 kB / 0.5428 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.272e-05/0.4027, allocations: 45.95 kB / 0.5428 GB, free: 13.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.493e-06/0.4027, allocations: 0 / 0.5428 GB, free: 13.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009571/0.4036, allocations: 393 kB / 0.5432 GB, free: 13.42 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.4037, allocations: 157.9 kB / 0.5433 GB, free: 13.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004235/0.4042, allocations: 324.5 kB / 0.5437 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.991e-05/0.4042, allocations: 38.98 kB / 0.5437 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002232/0.4044, allocations: 260.7 kB / 0.5439 GB, free: 12.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.4045, allocations: 108.1 kB / 0.544 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.4047, allocations: 104.8 kB / 0.5441 GB, free: 12.58 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.4049, allocations: 359.6 kB / 0.5445 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003585/0.4053, allocations: 143.6 kB / 0.5446 GB, free: 12.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000471/0.4057, allocations: 288.3 kB / 0.5449 GB, free: 11.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006894/0.4064, allocations: 369.9 kB / 0.5452 GB, free: 11.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.4064, allocations: 1.312 kB / 0.5453 GB, free: 11.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.00097/0.4074, allocations: 480.6 kB / 0.5457 GB, free: 11.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.4074, allocations: 6.812 kB / 0.5457 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.4074, allocations: 3.156 kB / 0.5457 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.4075, allocations: 6.062 kB / 0.5457 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/0.4078, allocations: 73.52 kB / 0.5458 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/0.4078, allocations: 6.656 kB / 0.5458 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003003/0.4081, allocations: 65.41 kB / 0.5459 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.146e-05/0.4081, allocations: 19.75 kB / 0.5459 GB, free: 11.35 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.inventory.inflow.stopInflow,$PRE.inventory.outflow.stopInflow,$PRE.producing.cloud.massPort.stopInflow,$PRE.producing.cloud.massPort.stopOutflow,$PRE.installedBase.inflow.stopInflow,$PRE.installedBase.inflow.stopOutflow,$PRE.cloud1.massPort.stopInflow,$PRE.cloud1.massPort.stopOutflow,cloud1.massPort.stopOutflow,cloud1.massPort.stopInflow,installedBase.inflow.stopInflow,producing.cloud.massPort.stopOutflow,inventory.inflow.stopInflow,installedBase.inflow.stopOutflow,producing.cloud.massPort.stopInflow,inventory.outflow.stopInflow,shipping.portA.stopInflow,producing.growing.portA.stopInflow,shipping.portB.stopOutflow,producing.growing.useB_rate,$PRE.producing.growing.useB_rate,producing.growing.useA_rate,$PRE.producing.growing.useA_rate,producing.growing.portB.stopOutflow,producing.growing.portB.stopInflow,producing.growing.portA.stopOutflow,shipping.useB_rate,$PRE.shipping.useB_rate,shipping.useA_rate,$PRE.shipping.useA_rate,shipping.portB.stopInflow,shipping.portA.stopOutflow,inventory.outflow.stopOutflow,$PRE.inventory.outflow.stopOutflow,inventory.inflow.stopOutflow,$PRE.inventory.inflow.stopOutflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 63 * 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.0002627/0.4084, allocations: 193 kB / 0.5461 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.4085, allocations: 35.5 kB / 0.5461 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.908e-05/0.4086, allocations: 48.62 kB / 0.5461 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.4086, allocations: 3.781 kB / 0.5461 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.4086, allocations: 5.594 kB / 0.5462 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.4086, allocations: 1.344 kB / 0.5462 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001892/0.4105, allocations: 1.146 MB / 0.5473 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.4105, allocations: 2.906 kB / 0.5473 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.4107, allocations: 44.97 kB / 0.5473 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.4107, allocations: 3.844 kB / 0.5473 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.985e-05/0.4108, allocations: 17.39 kB / 0.5473 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.19e-05/0.4108, allocations: 12.53 kB / 0.5474 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.4108, allocations: 6.938 kB / 0.5474 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.4118, allocations: 0.5482 MB / 0.5479 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.412, allocations: 61.78 kB / 0.548 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.847e-05/0.412, allocations: 17.17 kB / 0.548 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.4122, allocations: 20.62 kB / 0.548 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.4124, allocations: 32.77 kB / 0.548 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.4124, allocations: 8.344 kB / 0.548 GB, free: 9.648 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004047/0.4128, allocations: 215 kB / 0.5482 GB, free: 9.508 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4128, allocations: 0 / 0.5482 GB, free: 9.508 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005606/0.4134, allocations: 111.1 kB / 0.5483 GB, free: 9.473 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (inventory.x,installedBase.x_hidden[1],installedBase.x_hidden[2],installedBase.x_hidden[3],installedBase.x_hidden[4]) * Number of discrete variables: 14 (inventory.outflow.stopOutflow,producing.growing.portB.stopOutflow,inventory.inflow.stopOutflow,shipping.portA.stopOutflow,shipping.useA_rate,producing.growing.useA_rate,shipping.portA.stopInflow,producing.growing.portA.stopInflow,shipping.portB.stopOutflow,producing.growing.useB_rate,producing.growing.portB.stopInflow,producing.growing.portA.stopOutflow,shipping.useB_rate,shipping.portB.stopInflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 31 * 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.001507/0.4149, allocations: 1.134 MB / 0.5494 GB, free: 8.508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008193/0.4157, allocations: 321.7 kB / 0.5498 GB, free: 8.375 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4157, allocations: 5.344 kB / 0.5498 GB, free: 8.371 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003564/0.4161, allocations: 155.9 kB / 0.5499 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006697/0.4167, allocations: 102.4 kB / 0.55 GB, free: 8.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005883/0.4226, allocations: 3.643 MB / 0.5536 GB, free: 5.543 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.4229, allocations: 221.6 kB / 0.5538 GB, free: 5.395 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002682/0.4232, allocations: 64.73 kB / 0.5538 GB, free: 5.363 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002817/0.4235, allocations: 157.5 kB / 0.554 GB, free: 5.234 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4235, allocations: 1.312 kB / 0.554 GB, free: 5.234 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03983/0.4633, allocations: 8.364 MB / 0.5622 GB, free: 14.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.88, allocations: 10.08 kB / 0.5622 GB, free: 14.14 MB / 414.1 MB " [Timeout remaining time 648] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.60377068631351] Failed to read output from testmodel.py, exit status != 0: 11.992734476923943 12.012779293 11.613557187 Calling exit ...