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.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.000998/0.000998, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001147/0.001147, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.916/0.916, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.1/0.1, allocations: 24.12 MB / 283.3 MB, free: 5.484 MB / 266.7 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.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 1.874e-06/1.874e-06, allocations: 0 / 420 MB, free: 8.523 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.107e-05/2.294e-05, allocations: 2.281 kB / 420 MB, free: 8.52 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006412/0.006435, allocations: 5.101 MB / 425.1 MB, free: 3.395 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.007811, allocations: 0.6072 MB / 425.8 MB, free: 2.785 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002617/0.008073, allocations: 15.88 kB / 425.8 MB, free: 2.77 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002666/0.008339, allocations: 83.25 kB / 425.9 MB, free: 2.688 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.008551, allocations: 71.31 kB / 425.9 MB, free: 2.617 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005748/0.009125, allocations: 195.4 kB / 426.1 MB, free: 2.426 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004676/0.009593, allocations: 467.1 kB / 426.6 MB, free: 1.969 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002785/0.009872, allocations: 150.9 kB / 426.7 MB, free: 1.816 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003069/0.01018, allocations: 283.4 kB / 427 MB, free: 1.539 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.01039, allocations: 139.5 kB / 427.1 MB, free: 1.402 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 5.934e-05/0.01045, allocations: 47.94 kB / 427.2 MB, free: 1.355 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.838e-05/0.01055, allocations: 56 kB / 427.2 MB, free: 1.301 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.01066, allocations: 115.6 kB / 427.3 MB, free: 1.188 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.01079, allocations: 143.6 kB / 427.5 MB, free: 1.047 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005372/0.01133, allocations: 466.5 kB / 427.9 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.01133, allocations: 0 / 427.9 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.01134, allocations: 0 / 427.9 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.01135, allocations: 0 / 427.9 MB, free: 0.5898 MB / 394.7 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.00113/0.01248, allocations: 0.6264 MB / 428.6 MB, free: 15.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.01253, allocations: 8.75 kB / 428.6 MB, free: 15.92 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.68e-05/0.01261, allocations: 78.72 kB / 428.7 MB, free: 15.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002842/0.0129, allocations: 72.61 kB / 428.7 MB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004614/0.01336, allocations: 272.9 kB / 429 MB, free: 15.47 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.336e-05/0.0134, allocations: 37.38 kB / 429 MB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.672e-05/0.01347, allocations: 40.38 kB / 429.1 MB, free: 15.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006778/0.01415, allocations: 474.8 kB / 429.5 MB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.01416, allocations: 3.938 kB / 429.5 MB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.0142, allocations: 16 kB / 429.5 MB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.01421, allocations: 16 kB / 429.6 MB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006517/0.01486, allocations: 243.8 kB / 429.8 MB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.01639, allocations: 1.459 MB / 431.3 MB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004439/0.01684, allocations: 242.3 kB / 431.5 MB, free: 12.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.01701, allocations: 151.3 kB / 431.6 MB, free: 12.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.01703, allocations: 7.938 kB / 431.7 MB, free: 12.65 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.01706, allocations: 38.56 kB / 431.7 MB, free: 12.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=28): time 3.206e-06/0.01706, allocations: 4 kB / 431.7 MB, free: 12.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=28): time 0.0005735/0.01764, allocations: 349.6 kB / 432 MB, free: 12.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.972e-05/0.01771, allocations: 158.2 kB / 432.2 MB, free: 12.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.01792, allocations: 273.7 kB / 432.5 MB, free: 11.78 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.01795, allocations: 41.7 kB / 432.5 MB, free: 11.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.01807, allocations: 224.5 kB / 432.7 MB, free: 11.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.609e-05/0.01812, allocations: 87.64 kB / 432.8 MB, free: 11.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.01823, allocations: 106.1 kB / 432.9 MB, free: 11.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.478e-05/0.01832, allocations: 338.8 kB / 433.2 MB, free: 10.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.0185, allocations: 132.9 kB / 433.4 MB, free: 10.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.01875, allocations: 278.9 kB / 433.6 MB, free: 10.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003722/0.01912, allocations: 346.7 kB / 434 MB, free: 10.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.01912, allocations: 0 / 434 MB, free: 10.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0005115/0.01963, allocations: 441.7 kB / 434.4 MB, free: 9.703 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.01965, allocations: 11.94 kB / 434.4 MB, free: 9.691 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.01966, allocations: 8.344 kB / 434.4 MB, free: 9.684 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.01968, allocations: 8 kB / 434.4 MB, free: 9.676 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.01981, allocations: 63.89 kB / 434.5 MB, free: 9.613 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.01982, allocations: 7.938 kB / 434.5 MB, free: 9.605 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.01996, allocations: 63.53 kB / 434.6 MB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.65e-05/0.01999, allocations: 20 kB / 434.6 MB, free: 9.523 MB / 410.7 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.0001484/0.02014, allocations: 194.9 kB / 434.8 MB, free: 9.324 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.621e-05/0.02019, allocations: 23.86 kB / 434.8 MB, free: 9.301 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.25e-05/0.02024, allocations: 34.27 kB / 434.8 MB, free: 9.266 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.02024, allocations: 8 kB / 434.8 MB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.02025, allocations: 0 / 434.8 MB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.02025, allocations: 3.938 kB / 434.8 MB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009848/0.02124, allocations: 1.126 MB / 436 MB, free: 8.031 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.02124, allocations: 4 kB / 436 MB, free: 8.027 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.02135, allocations: 39.91 kB / 436 MB, free: 7.988 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.02135, allocations: 4 kB / 436 MB, free: 7.984 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.02137, allocations: 8 kB / 436 MB, free: 7.977 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.02138, allocations: 11.94 kB / 436 MB, free: 7.965 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.02138, allocations: 3.938 kB / 436 MB, free: 7.961 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005054/0.02188, allocations: 0.5371 MB / 436.6 MB, free: 7.367 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.868e-05/0.02196, allocations: 51.78 kB / 436.6 MB, free: 7.316 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.051e-05/0.02199, allocations: 19.92 kB / 436.7 MB, free: 7.297 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.961e-05/0.02209, allocations: 15.98 kB / 436.7 MB, free: 7.281 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.956e-05/0.02216, allocations: 35.89 kB / 436.7 MB, free: 7.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.02217, allocations: 12 kB / 436.7 MB, free: 7.234 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001138/0.02229, allocations: 173.2 kB / 436.9 MB, free: 7.066 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02229, allocations: 0 / 436.9 MB, free: 7.066 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002956/0.02258, allocations: 103.7 kB / 437 MB, free: 6.965 MB / 410.7 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.0006608/0.02324, allocations: 1.085 MB / 438.1 MB, free: 5.816 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004274/0.02367, allocations: 316 kB / 438.4 MB, free: 5.508 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.02367, allocations: 0 / 438.4 MB, free: 5.508 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.02385, allocations: 139.8 kB / 438.5 MB, free: 5.375 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004047/0.02425, allocations: 106.7 kB / 438.6 MB, free: 5.277 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00319/0.02744, allocations: 3.336 MB / 442 MB, free: 1.695 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.02759, allocations: 195.4 kB / 442.1 MB, free: 1.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001612/0.02775, allocations: 51.25 kB / 442.2 MB, free: 1.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/0.02789, allocations: 120.5 kB / 442.3 MB, free: 1.312 MB / 410.7 MB Notification: Performance of SimCode: time 1.143e-06/0.02789, allocations: 0 / 442.3 MB, free: 1.312 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1859/0.2138, allocations: 7.458 MB / 449.8 MB, free: 62.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.671/6.885, allocations: 16.42 kB / 449.8 MB, free: 62.51 MB / 410.7 MB " [Timeout remaining time 653] (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: 8.755837045609951] Failed to read output from testmodel.py, exit status != 0: 6.970892701297998 6.977544808 6.964729315 Calling exit ...