Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.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.001375/0.001375, 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.001616/0.001616, allocations: 213.9 kB / 22.25 MB, free: 5.262 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.425/1.425, allocations: 230.6 MB / 256 MB, free: 7.773 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.2828/0.2828, allocations: 31.54 MB / 344 MB, free: 3.754 MB / 270.1 MB " [Timeout remaining time 179] 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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",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.002298/0.002298, allocations: 67.89 kB / 480.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.346, allocations: 60.72 MB / 0.5288 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006478/0.3525, allocations: 5.081 MB / 0.5337 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.3538, allocations: 0.6121 MB / 0.5343 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002156/0.354, allocations: 15.53 kB / 0.5343 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002496/0.3543, allocations: 79.42 kB / 0.5344 GB, free: 3.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001868/0.3545, allocations: 73.03 kB / 0.5345 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005349/0.355, allocations: 183.4 kB / 0.5346 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004769/0.3555, allocations: 460.8 kB / 0.5351 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002706/0.3557, allocations: 150.1 kB / 0.5352 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002083/0.356, allocations: 198.7 kB / 0.5354 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.3562, allocations: 168.5 kB / 0.5356 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.798e-05/0.3562, allocations: 44.72 kB / 0.5356 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.3563, allocations: 55.3 kB / 0.5357 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.3565, allocations: 110.2 kB / 0.5358 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001515/0.3566, allocations: 172.5 kB / 0.5359 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005403/0.3571, allocations: 462.2 kB / 0.5364 GB, free: 2.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3571, allocations: 0 / 0.5364 GB, free: 2.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3571, allocations: 1.344 kB / 0.5364 GB, free: 2.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.3572, allocations: 0.5156 kB / 0.5364 GB, free: 2.512 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001102/0.3583, allocations: 0.6286 MB / 0.537 GB, free: 2.047 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3583, allocations: 10.31 kB / 0.537 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.678e-05/0.3584, allocations: 77.28 kB / 0.5371 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002987/0.3587, allocations: 66.33 kB / 0.5371 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004374/0.3591, allocations: 266.9 kB / 0.5374 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.865e-05/0.3592, allocations: 44.67 kB / 0.5374 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.391e-05/0.3592, allocations: 51.86 kB / 0.5375 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006797/0.3599, allocations: 471.2 kB / 0.5379 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.3599, allocations: 7.875 kB / 0.538 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.333e-05/0.36, allocations: 16.25 kB / 0.538 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.301e-05/0.36, allocations: 10.53 kB / 0.538 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000503/0.3605, allocations: 245 kB / 0.5382 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.3622, allocations: 1.466 MB / 0.5396 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005857/0.3628, allocations: 249 kB / 0.5399 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002778/0.3631, allocations: 153.3 kB / 0.54 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.3631, allocations: 8.109 kB / 0.54 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.3631, allocations: 38.69 kB / 0.5401 GB, free: 15.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.543e-06/0.3631, allocations: 0 / 0.5401 GB, free: 15.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008424/0.364, allocations: 350.1 kB / 0.5404 GB, free: 15.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.3641, allocations: 159.1 kB / 0.5406 GB, free: 15.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003206/0.3644, allocations: 272.5 kB / 0.5408 GB, free: 15.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.186e-05/0.3644, allocations: 47.17 kB / 0.5409 GB, free: 15.04 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.3646, allocations: 217.1 kB / 0.5411 GB, free: 14.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.565e-05/0.3647, allocations: 87.45 kB / 0.5412 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.3649, allocations: 102.2 kB / 0.5412 GB, free: 14.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.365, allocations: 338.6 kB / 0.5416 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003307/0.3654, allocations: 138.8 kB / 0.5417 GB, free: 14.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004328/0.3658, allocations: 277.4 kB / 0.542 GB, free: 14.06 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006049/0.3664, allocations: 343.8 kB / 0.5423 GB, free: 13.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3664, allocations: 1.375 kB / 0.5423 GB, free: 13.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008791/0.3673, allocations: 452.9 kB / 0.5427 GB, free: 13.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.3673, allocations: 6.781 kB / 0.5427 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.3673, allocations: 3.375 kB / 0.5427 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.3673, allocations: 9.562 kB / 0.5427 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002626/0.3676, allocations: 61.78 kB / 0.5428 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.3676, allocations: 13.67 kB / 0.5428 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002763/0.3679, allocations: 61.55 kB / 0.5429 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.781e-05/0.3679, allocations: 22.5 kB / 0.5429 GB, free: 13.5 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 (60): * Single equations (assignments): 60 * 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.0002161/0.3682, allocations: 184.3 kB / 0.5431 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.3683, allocations: 34.17 kB / 0.5431 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.792e-05/0.3684, allocations: 36.7 kB / 0.5431 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.3684, allocations: 7.375 kB / 0.5432 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3684, allocations: 1.125 kB / 0.5432 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.3684, allocations: 1.312 kB / 0.5432 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/0.3701, allocations: 1.114 MB / 0.5442 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3701, allocations: 2.688 kB / 0.5442 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.3703, allocations: 38.94 kB / 0.5443 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.785e-06/0.3703, allocations: 4.438 kB / 0.5443 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.289e-05/0.3703, allocations: 15.59 kB / 0.5443 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.788e-06/0.3703, allocations: 16.05 kB / 0.5443 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.3703, allocations: 3.281 kB / 0.5443 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008619/0.3712, allocations: 0.5378 MB / 0.5448 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.3713, allocations: 59.47 kB / 0.5449 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.3714, allocations: 11.34 kB / 0.5449 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.3716, allocations: 21.45 kB / 0.5449 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.645e-05/0.3717, allocations: 41.3 kB / 0.545 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.919e-05/0.3717, allocations: 12.38 kB / 0.545 GB, free: 11.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001969/0.3719, allocations: 180.5 kB / 0.5452 GB, free: 11.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3719, allocations: 1.438 kB / 0.5452 GB, free: 11.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004736/0.3724, allocations: 98.64 kB / 0.5453 GB, free: 11.65 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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,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,producing.growing.useA_rate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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.00129/0.3736, allocations: 1.084 MB / 0.5463 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008392/0.3745, allocations: 320.2 kB / 0.5466 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.3745, allocations: 0 / 0.5466 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003176/0.3748, allocations: 136.2 kB / 0.5467 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006326/0.3754, allocations: 92.48 kB / 0.5468 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005267/0.3807, allocations: 3.38 MB / 0.5501 GB, free: 7.832 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.381, allocations: 192.8 kB / 0.5503 GB, free: 7.699 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002339/0.3812, allocations: 48.17 kB / 0.5504 GB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.3814, allocations: 119 kB / 0.5505 GB, free: 7.586 MB / 398.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3814, allocations: 0 / 0.5505 GB, free: 7.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03831/0.4197, allocations: 7.333 MB / 0.5576 GB, free: 2.668 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.69, allocations: 7.938 kB / 0.5576 GB, free: 2.66 MB / 398.1 MB " [Timeout remaining time 648] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.51368691585958] Failed to read output from testmodel.py, exit status != 0: 11.805781796108931 11.833547521 11.471201235 Calling exit ...