Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 111 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 196.5 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.3073/0.3073, allocations: 31.6 MB / 334.3 MB, free: 10.8 MB / 270.1 MB " [Timeout remaining time 179] 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 67.89 kB / 467.2 MB, free: 8.98 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3612, allocations: 59.49 MB / 0.5143 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008054/0.3693, allocations: 6.845 MB / 0.521 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00254/0.3718, allocations: 1.004 MB / 0.522 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005102/0.3723, allocations: 21.06 kB / 0.522 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000391/0.3727, allocations: 105.9 kB / 0.5221 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003057/0.373, allocations: 75.48 kB / 0.5222 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.3741, allocations: 232.3 kB / 0.5224 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001008/0.3751, allocations: 0.5677 MB / 0.5229 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005486/0.3757, allocations: 224.1 kB / 0.5232 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004207/0.3761, allocations: 227.1 kB / 0.5234 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004352/0.3765, allocations: 244.3 kB / 0.5236 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.3767, allocations: 57.31 kB / 0.5237 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001796/0.3768, allocations: 66.91 kB / 0.5237 GB, free: 1.434 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002287/0.3771, allocations: 124.6 kB / 0.5238 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002716/0.3773, allocations: 266.2 kB / 0.5241 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.3785, allocations: 0.5724 MB / 0.5247 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3785, allocations: 1.375 kB / 0.5247 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3785, allocations: 3.938 kB / 0.5247 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.3785, allocations: 4 kB / 0.5247 GB, free: 0.8828 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.001588/0.3801, allocations: 0.802 MB / 0.5255 GB, free: 272 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.105e-05/0.3802, allocations: 10.09 kB / 0.5255 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001194/0.3803, allocations: 89.98 kB / 0.5255 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003449/0.3807, allocations: 85.77 kB / 0.5256 GB, free: 164 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007975/0.3815, allocations: 404.3 kB / 0.526 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.922e-05/0.3815, allocations: 49.41 kB / 0.5261 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.3816, allocations: 58.53 kB / 0.5261 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.3828, allocations: 0.4899 MB / 0.5266 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.885e-05/0.3829, allocations: 0 / 0.5266 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.272e-05/0.3829, allocations: 29.02 kB / 0.5266 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.646e-05/0.3829, allocations: 12.72 kB / 0.5266 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007986/0.3837, allocations: 308.4 kB / 0.5269 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003248/0.387, allocations: 1.864 MB / 0.5287 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008304/0.3878, allocations: 292.7 kB / 0.529 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003711/0.3882, allocations: 172 kB / 0.5292 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.3882, allocations: 6.297 kB / 0.5292 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.799e-05/0.3883, allocations: 47.38 kB / 0.5292 GB, free: 13.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.853e-06/0.3883, allocations: 0 / 0.5292 GB, free: 13.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001143/0.3894, allocations: 378.9 kB / 0.5296 GB, free: 13.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002393/0.3897, allocations: 164.6 kB / 0.5298 GB, free: 13.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004966/0.3902, allocations: 317.6 kB / 0.5301 GB, free: 13.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.157e-05/0.3902, allocations: 44.22 kB / 0.5301 GB, free: 13.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003235/0.3905, allocations: 259.3 kB / 0.5304 GB, free: 12.99 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.3907, allocations: 106.7 kB / 0.5305 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002449/0.3909, allocations: 101.4 kB / 0.5306 GB, free: 12.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002222/0.3912, allocations: 348.3 kB / 0.5309 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003746/0.3915, allocations: 144.6 kB / 0.531 GB, free: 12.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005581/0.3921, allocations: 263.4 kB / 0.5313 GB, free: 12.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008461/0.3929, allocations: 366.9 kB / 0.5316 GB, free: 12.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3929, allocations: 1.219 kB / 0.5316 GB, free: 12.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001168/0.3941, allocations: 486.9 kB / 0.5321 GB, free: 11.85 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.3941, allocations: 5.938 kB / 0.5321 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.3941, allocations: 3.031 kB / 0.5321 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.714e-05/0.3942, allocations: 6 kB / 0.5321 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.3945, allocations: 73.91 kB / 0.5322 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.74e-05/0.3945, allocations: 6.094 kB / 0.5322 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003075/0.3948, allocations: 63.05 kB / 0.5322 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.022e-05/0.3948, allocations: 20 kB / 0.5323 GB, free: 11.8 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.0002624/0.3951, allocations: 200.6 kB / 0.5325 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.3952, allocations: 43.22 kB / 0.5325 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.314e-05/0.3953, allocations: 40.27 kB / 0.5325 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.3953, allocations: 7.906 kB / 0.5325 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.3953, allocations: 1.312 kB / 0.5325 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.3953, allocations: 4.109 kB / 0.5325 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00209/0.3974, allocations: 1.216 MB / 0.5337 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.3974, allocations: 2.562 kB / 0.5337 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/0.3977, allocations: 45.62 kB / 0.5338 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.398e-06/0.3977, allocations: 4.156 kB / 0.5338 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.138e-05/0.3977, allocations: 9.656 kB / 0.5338 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-05/0.3977, allocations: 16.58 kB / 0.5338 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.3977, allocations: 3.281 kB / 0.5338 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.3988, allocations: 0.5525 MB / 0.5343 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002109/0.399, allocations: 137.5 kB / 0.5345 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.858e-05/0.3991, allocations: 19.75 kB / 0.5345 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.3993, allocations: 21.2 kB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.3994, allocations: 28.66 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.3994, allocations: 11.5 kB / 0.5346 GB, free: 10.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000298/0.3997, allocations: 210.6 kB / 0.5348 GB, free: 10.03 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3997, allocations: 5.031 kB / 0.5348 GB, free: 10.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005216/0.4002, allocations: 111.9 kB / 0.5349 GB, free: 9.988 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.00155/0.4018, allocations: 1.109 MB / 0.536 GB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009654/0.4028, allocations: 337 kB / 0.5363 GB, free: 8.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4028, allocations: 4.969 kB / 0.5363 GB, free: 8.977 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003742/0.4031, allocations: 147.8 kB / 0.5364 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000694/0.4038, allocations: 108.8 kB / 0.5365 GB, free: 8.891 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006586/0.4104, allocations: 3.648 MB / 0.5401 GB, free: 6.441 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008007/0.4112, allocations: 0.8268 MB / 0.5409 GB, free: 5.738 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003767/0.4116, allocations: 66.08 kB / 0.541 GB, free: 5.723 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003013/0.4119, allocations: 153.6 kB / 0.5411 GB, free: 5.613 MB / 398.1 MB Notification: Performance of SimCode: time 2.254e-06/0.4119, allocations: 0 / 0.5411 GB, free: 5.613 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03865/0.4505, allocations: 7.424 MB / 0.5484 GB, free: 2.598 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.413/8.864, allocations: 4.531 kB / 0.5484 GB, free: 2.598 MB / 398.1 MB " [Timeout remaining time 651] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.722688758280128] Failed to read output from testmodel.py, exit status != 0: 8.936806733720005 8.955413023 8.572415438 Calling exit ...