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.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.001789/0.001789, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.002352/0.002352, allocations: 217.5 kB / 23.03 MB, free: 4.922 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.1768/0.1768, allocations: 31.54 MB / 344.8 MB, free: 3.895 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.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="cs",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.002052/0.002052, allocations: 67.91 kB / 481.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3335, allocations: 60.71 MB / 0.5295 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007823/0.3413, allocations: 6.348 MB / 0.5357 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002237/0.3435, allocations: 0.9895 MB / 0.5367 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007094/0.3442, allocations: 29.31 kB / 0.5367 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003884/0.3446, allocations: 108.1 kB / 0.5368 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002919/0.3449, allocations: 76.77 kB / 0.5369 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00075/0.3457, allocations: 231.5 kB / 0.5371 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006024/0.3463, allocations: 0.5682 MB / 0.5377 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003509/0.3466, allocations: 217.2 kB / 0.5379 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002762/0.3469, allocations: 240.5 kB / 0.5381 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002617/0.3472, allocations: 240.8 kB / 0.5383 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.013e-05/0.3472, allocations: 56.72 kB / 0.5384 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001222/0.3474, allocations: 63.58 kB / 0.5384 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.3475, allocations: 136.1 kB / 0.5386 GB, free: 1.484 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.3477, allocations: 206.4 kB / 0.5388 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005364/0.3482, allocations: 0.5816 MB / 0.5393 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3482, allocations: 5.25 kB / 0.5393 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3482, allocations: 0 / 0.5393 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.3482, allocations: 0 / 0.5393 GB, free: 0.9414 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.001123/0.3493, allocations: 0.7189 MB / 0.54 GB, free: 360 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3494, allocations: 10.69 kB / 0.5401 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.154e-05/0.3494, allocations: 13.5 kB / 0.5401 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.923e-05/0.3495, allocations: 98.91 kB / 0.5402 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003065/0.3498, allocations: 84.17 kB / 0.5402 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005341/0.3503, allocations: 341.1 kB / 0.5406 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.684e-05/0.3504, allocations: 49 kB / 0.5406 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.81e-05/0.3504, allocations: 61.45 kB / 0.5407 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009391/0.3514, allocations: 0.5449 MB / 0.5412 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.3514, allocations: 1.375 kB / 0.5412 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.593e-05/0.3514, allocations: 20.12 kB / 0.5412 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.3515, allocations: 13.75 kB / 0.5412 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006756/0.3521, allocations: 308.8 kB / 0.5415 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002424/0.3546, allocations: 1.644 MB / 0.5431 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007212/0.3553, allocations: 292.5 kB / 0.5434 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003239/0.3556, allocations: 179.3 kB / 0.5436 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.3556, allocations: 8.016 kB / 0.5436 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.3557, allocations: 39.64 kB / 0.5436 GB, free: 13.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.395e-06/0.3557, allocations: 0 / 0.5436 GB, free: 13.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009756/0.3566, allocations: 388.7 kB / 0.544 GB, free: 13.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.3567, allocations: 162.6 kB / 0.5442 GB, free: 13.17 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003952/0.3571, allocations: 319.1 kB / 0.5445 GB, free: 12.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.56e-05/0.3572, allocations: 40.45 kB / 0.5445 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/0.3574, allocations: 264.1 kB / 0.5447 GB, free: 12.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.815e-05/0.3575, allocations: 96.78 kB / 0.5448 GB, free: 12.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.3577, allocations: 108.1 kB / 0.5449 GB, free: 12.53 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.3579, allocations: 346.9 kB / 0.5453 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003549/0.3582, allocations: 144 kB / 0.5454 GB, free: 12.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004889/0.3587, allocations: 292.1 kB / 0.5457 GB, free: 11.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006652/0.3594, allocations: 373.1 kB / 0.546 GB, free: 11.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3594, allocations: 1.406 kB / 0.546 GB, free: 11.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009374/0.3603, allocations: 481 kB / 0.5465 GB, free: 11.38 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3603, allocations: 7.094 kB / 0.5465 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.3603, allocations: 2.5 kB / 0.5465 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/0.3604, allocations: 6.688 kB / 0.5465 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003049/0.3607, allocations: 69.48 kB / 0.5466 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.508e-05/0.3607, allocations: 9.953 kB / 0.5466 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003148/0.361, allocations: 62.17 kB / 0.5467 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.361, allocations: 26.67 kB / 0.5467 GB, free: 11.3 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.0002568/0.3613, allocations: 198.1 kB / 0.5469 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.3614, allocations: 38.83 kB / 0.5469 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.755e-05/0.3615, allocations: 45.39 kB / 0.547 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3615, allocations: 4 kB / 0.547 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.3615, allocations: 5.375 kB / 0.547 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3615, allocations: 5.203 kB / 0.547 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/0.3633, allocations: 1.146 MB / 0.5481 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.3633, allocations: 3.031 kB / 0.5481 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002358/0.3636, allocations: 41.34 kB / 0.5481 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.3636, allocations: 4.188 kB / 0.5481 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.204e-05/0.3636, allocations: 17.59 kB / 0.5481 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.3636, allocations: 2.781 kB / 0.5482 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.3636, allocations: 11.14 kB / 0.5482 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009174/0.3645, allocations: 0.5488 MB / 0.5487 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.3647, allocations: 65.38 kB / 0.5488 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.484e-05/0.3647, allocations: 13 kB / 0.5488 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/0.3649, allocations: 16.23 kB / 0.5488 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.473e-05/0.365, allocations: 38.47 kB / 0.5488 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.3651, allocations: 14.59 kB / 0.5488 GB, free: 9.594 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002418/0.3653, allocations: 215.4 kB / 0.549 GB, free: 9.453 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3653, allocations: 0 / 0.549 GB, free: 9.453 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004649/0.3658, allocations: 107.8 kB / 0.5491 GB, free: 9.422 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.001273/0.367, allocations: 1.128 MB / 0.5502 GB, free: 8.461 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007511/0.3678, allocations: 328.9 kB / 0.5506 GB, free: 8.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3678, allocations: 1.031 kB / 0.5506 GB, free: 8.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003194/0.3681, allocations: 153.5 kB / 0.5507 GB, free: 8.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006487/0.3688, allocations: 106.5 kB / 0.5508 GB, free: 8.195 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005367/0.3741, allocations: 3.636 MB / 0.5544 GB, free: 5.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002623/0.3744, allocations: 217.6 kB / 0.5546 GB, free: 5.355 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000255/0.3746, allocations: 64.83 kB / 0.5546 GB, free: 5.324 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002486/0.3749, allocations: 162.4 kB / 0.5548 GB, free: 5.191 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3749, allocations: 0 / 0.5548 GB, free: 5.191 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03183/0.4067, allocations: 8.062 MB / 0.5627 GB, free: 14.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.22, allocations: 14.75 kB / 0.5627 GB, free: 14.46 MB / 414.1 MB " [Timeout remaining time 648] (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: 15.090932811028324] Failed to read output from testmodel.py, exit status != 0: 12.39082708407659 12.407096979 12.055482739 Calling exit ...