Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.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.001432/0.001432, allocations: 113.3 kB / 16.45 MB, free: 6.508 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.001303/0.001303, allocations: 195.7 kB / 19.41 MB, free: 3.672 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.441/1.441, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.3328/0.3328, allocations: 31.58 MB / 334.2 MB, free: 10.65 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/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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 72.08 kB / 467.1 MB, free: 8.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3548, allocations: 59.49 MB / 0.5143 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005869/0.3607, allocations: 5.416 MB / 0.5196 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.3619, allocations: 0.6142 MB / 0.5202 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002045/0.3621, allocations: 10.75 kB / 0.5202 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002628/0.3623, allocations: 76.06 kB / 0.5202 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.3625, allocations: 76.36 kB / 0.5203 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004894/0.363, allocations: 180.4 kB / 0.5205 GB, free: 3.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004213/0.3634, allocations: 468 kB / 0.5209 GB, free: 3.234 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002528/0.3637, allocations: 164.2 kB / 0.5211 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.3639, allocations: 189.1 kB / 0.5213 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.3641, allocations: 203 kB / 0.5215 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.14e-05/0.3641, allocations: 44.75 kB / 0.5215 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.636e-05/0.3642, allocations: 59.66 kB / 0.5216 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.337e-05/0.3643, allocations: 106.8 kB / 0.5217 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.3645, allocations: 205.4 kB / 0.5219 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004401/0.3649, allocations: 461.5 kB / 0.5223 GB, free: 2.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3649, allocations: 0 / 0.5223 GB, free: 2.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3649, allocations: 4 kB / 0.5223 GB, free: 2.504 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.3649, allocations: 1.188 kB / 0.5223 GB, free: 2.504 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.0009934/0.3659, allocations: 0.7034 MB / 0.523 GB, free: 1.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.3659, allocations: 9.438 kB / 0.523 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.843e-05/0.366, allocations: 76.28 kB / 0.5231 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002949/0.3663, allocations: 71.86 kB / 0.5231 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/0.3667, allocations: 332.4 kB / 0.5235 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/0.3667, allocations: 39.59 kB / 0.5235 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.425e-05/0.3668, allocations: 52.61 kB / 0.5236 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006052/0.3674, allocations: 413.7 kB / 0.5239 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.3674, allocations: 5.875 kB / 0.524 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.055e-05/0.3674, allocations: 15.81 kB / 0.524 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.3674, allocations: 14.98 kB / 0.524 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005208/0.368, allocations: 250.5 kB / 0.5242 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.3698, allocations: 1.658 MB / 0.5258 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006543/0.3704, allocations: 239.8 kB / 0.5261 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003071/0.3707, allocations: 156.4 kB / 0.5262 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.3708, allocations: 7 kB / 0.5262 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.3708, allocations: 42.42 kB / 0.5263 GB, free: 15.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.973e-06/0.3708, allocations: 0 / 0.5263 GB, free: 15.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008443/0.3716, allocations: 357.1 kB / 0.5266 GB, free: 15.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.3717, allocations: 164 kB / 0.5268 GB, free: 15.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003064/0.3721, allocations: 271.3 kB / 0.527 GB, free: 15.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.3721, allocations: 39.73 kB / 0.5271 GB, free: 15.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.3723, allocations: 211.9 kB / 0.5273 GB, free: 14.94 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.6e-05/0.3724, allocations: 93.56 kB / 0.5274 GB, free: 14.87 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001489/0.3725, allocations: 105 kB / 0.5275 GB, free: 14.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3727, allocations: 339.3 kB / 0.5278 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003128/0.373, allocations: 136.3 kB / 0.5279 GB, free: 14.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004187/0.3734, allocations: 253 kB / 0.5281 GB, free: 14.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006588/0.3741, allocations: 348.4 kB / 0.5285 GB, free: 14.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3741, allocations: 1.062 kB / 0.5285 GB, free: 14.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008928/0.375, allocations: 454.9 kB / 0.5289 GB, free: 13.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.375, allocations: 6.125 kB / 0.5289 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.375, allocations: 4.453 kB / 0.5289 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.375, allocations: 12.81 kB / 0.5289 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/0.3753, allocations: 61.31 kB / 0.529 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.3753, allocations: 8.984 kB / 0.529 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.3755, allocations: 53.28 kB / 0.5291 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.639e-05/0.3756, allocations: 24.81 kB / 0.5291 GB, free: 13.79 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.000212/0.3758, allocations: 183.5 kB / 0.5293 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.3759, allocations: 32.58 kB / 0.5293 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.244e-05/0.376, allocations: 36.17 kB / 0.5293 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.376, allocations: 7.25 kB / 0.5293 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.376, allocations: 1.797 kB / 0.5293 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.376, allocations: 2.453 kB / 0.5293 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.3777, allocations: 1.183 MB / 0.5305 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.3777, allocations: 3.281 kB / 0.5305 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.3779, allocations: 41.89 kB / 0.5305 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.3779, allocations: 4.219 kB / 0.5305 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.3779, allocations: 15.2 kB / 0.5305 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.346e-06/0.378, allocations: 13.48 kB / 0.5306 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.378, allocations: 4.375 kB / 0.5306 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008676/0.3788, allocations: 0.5344 MB / 0.5311 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.379, allocations: 136 kB / 0.5312 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.926e-05/0.379, allocations: 12.14 kB / 0.5312 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.3792, allocations: 17.91 kB / 0.5312 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.9e-05/0.3793, allocations: 38.75 kB / 0.5313 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/0.3794, allocations: 9.594 kB / 0.5313 GB, free: 12.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002225/0.3796, allocations: 183.3 kB / 0.5315 GB, free: 12.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3796, allocations: 0.7188 kB / 0.5315 GB, free: 12.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004718/0.3801, allocations: 99.42 kB / 0.5316 GB, free: 11.98 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.001166/0.3812, allocations: 1.092 MB / 0.5326 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006746/0.3819, allocations: 308.4 kB / 0.5329 GB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3819, allocations: 0 / 0.5329 GB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002825/0.3822, allocations: 134.8 kB / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005816/0.3828, allocations: 92.42 kB / 0.5331 GB, free: 10.89 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004639/0.3874, allocations: 3.364 MB / 0.5364 GB, free: 8.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004611/0.3879, allocations: 0.796 MB / 0.5372 GB, free: 7.816 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002256/0.3881, allocations: 57.45 kB / 0.5373 GB, free: 7.805 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.3883, allocations: 116 kB / 0.5374 GB, free: 7.723 MB / 398.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3883, allocations: 0 / 0.5374 GB, free: 7.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03386/0.4221, allocations: 6.426 MB / 0.5436 GB, free: 5.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.2/8.622, allocations: 5.703 kB / 0.5436 GB, free: 5.621 MB / 398.1 MB " [Timeout remaining time 651] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.531488065142184] Failed to read output from testmodel.py, exit status != 0: 8.697315322235227 8.715947406 8.347948094 Calling exit ...