Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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.001612/0.001612, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001482/0.001482, allocations: 220 kB / 22.26 MB, free: 5.121 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.48/1.48, allocations: 230.6 MB / 256 MB, free: 7.98 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.1826/0.1826, allocations: 31.55 MB / 344 MB, free: 3.98 MB / 270.1 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.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",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.002188/0.002188, allocations: 69.77 kB / 480.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.317, allocations: 60.71 MB / 0.5288 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008002/0.325, allocations: 6.938 MB / 0.5356 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.3273, allocations: 1.008 MB / 0.5366 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000595/0.3279, allocations: 29.56 kB / 0.5366 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003638/0.3283, allocations: 111.6 kB / 0.5367 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002637/0.3285, allocations: 72.84 kB / 0.5368 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007008/0.3292, allocations: 247.1 kB / 0.537 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006061/0.3298, allocations: 0.5648 MB / 0.5376 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003754/0.3302, allocations: 217 kB / 0.5378 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000278/0.3305, allocations: 234.7 kB / 0.538 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002972/0.3308, allocations: 242.2 kB / 0.5383 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.442e-05/0.3309, allocations: 57 kB / 0.5383 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.331, allocations: 66.56 kB / 0.5384 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.3311, allocations: 128.9 kB / 0.5385 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001964/0.3313, allocations: 261.3 kB / 0.5387 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006348/0.332, allocations: 0.5812 MB / 0.5393 GB, free: 328 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.332, allocations: 1.031 kB / 0.5393 GB, free: 328 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.332, allocations: 0 / 0.5393 GB, free: 328 kB / 382.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.332, allocations: 0 / 0.5393 GB, free: 328 kB / 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.001396/0.3334, allocations: 0.7229 MB / 0.54 GB, free: 15.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.3334, allocations: 14.88 kB / 0.54 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.3335, allocations: 89.73 kB / 0.5401 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003161/0.3339, allocations: 83.73 kB / 0.5402 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006405/0.3345, allocations: 337.1 kB / 0.5405 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.6e-05/0.3345, allocations: 49.38 kB / 0.5406 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.431e-05/0.3346, allocations: 57.34 kB / 0.5406 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009096/0.3355, allocations: 0.4888 MB / 0.5411 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.3356, allocations: 5.656 kB / 0.5411 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.592e-05/0.3356, allocations: 24.77 kB / 0.5411 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.3356, allocations: 12.56 kB / 0.5411 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007242/0.3363, allocations: 301 kB / 0.5414 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002866/0.3392, allocations: 1.82 MB / 0.5432 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007307/0.3399, allocations: 295.8 kB / 0.5435 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003322/0.3403, allocations: 167.7 kB / 0.5436 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.3403, allocations: 12.45 kB / 0.5437 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.3404, allocations: 45.42 kB / 0.5437 GB, free: 12.83 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.883e-06/0.3404, allocations: 0 / 0.5437 GB, free: 12.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001094/0.3414, allocations: 384.1 kB / 0.5441 GB, free: 12.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.3416, allocations: 163.2 kB / 0.5442 GB, free: 12.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004139/0.342, allocations: 318.9 kB / 0.5445 GB, free: 12.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.265e-05/0.342, allocations: 38.95 kB / 0.5446 GB, free: 12.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002307/0.3423, allocations: 265.6 kB / 0.5448 GB, free: 11.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.3424, allocations: 95.5 kB / 0.5449 GB, free: 11.88 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.3425, allocations: 104.1 kB / 0.545 GB, free: 11.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002778/0.3428, allocations: 346.9 kB / 0.5453 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003504/0.3432, allocations: 156.3 kB / 0.5455 GB, free: 11.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004715/0.3436, allocations: 254.8 kB / 0.5457 GB, free: 11.19 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006455/0.3443, allocations: 371.6 kB / 0.5461 GB, free: 10.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.3443, allocations: 5.031 kB / 0.5461 GB, free: 10.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009447/0.3452, allocations: 472.8 kB / 0.5465 GB, free: 10.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.3453, allocations: 7.156 kB / 0.5465 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.3453, allocations: 3.781 kB / 0.5466 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.3453, allocations: 9.781 kB / 0.5466 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.3456, allocations: 70.14 kB / 0.5466 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.3456, allocations: 13.3 kB / 0.5466 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003098/0.3459, allocations: 59.11 kB / 0.5467 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.662e-05/0.3459, allocations: 21.61 kB / 0.5467 GB, free: 10.61 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.0002784/0.3462, allocations: 192.6 kB / 0.5469 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.3463, allocations: 44.58 kB / 0.5469 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.3464, allocations: 44.95 kB / 0.547 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.3464, allocations: 4.281 kB / 0.547 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.3465, allocations: 5.25 kB / 0.547 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3465, allocations: 3.984 kB / 0.547 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/0.3485, allocations: 1.19 MB / 0.5482 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.3485, allocations: 3.375 kB / 0.5482 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.3487, allocations: 40.75 kB / 0.5482 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.3487, allocations: 8.094 kB / 0.5482 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.621e-05/0.3487, allocations: 9.719 kB / 0.5482 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.829e-06/0.3487, allocations: 15.75 kB / 0.5482 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3487, allocations: 2.844 kB / 0.5482 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009635/0.3497, allocations: 0.5556 MB / 0.5488 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.3498, allocations: 60.86 kB / 0.5488 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.508e-05/0.3499, allocations: 21.17 kB / 0.5489 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.3501, allocations: 16.58 kB / 0.5489 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.614e-05/0.3502, allocations: 40.34 kB / 0.5489 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.3502, allocations: 8.656 kB / 0.5489 GB, free: 8.844 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002395/0.3505, allocations: 210.3 kB / 0.5491 GB, free: 8.707 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3505, allocations: 0 / 0.5491 GB, free: 8.707 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004649/0.3509, allocations: 115.2 kB / 0.5492 GB, free: 8.668 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.001408/0.3523, allocations: 1.121 MB / 0.5503 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000756/0.3531, allocations: 328.7 kB / 0.5506 GB, free: 7.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3531, allocations: 1.25 kB / 0.5506 GB, free: 7.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003255/0.3534, allocations: 155.9 kB / 0.5508 GB, free: 7.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006593/0.3541, allocations: 113.8 kB / 0.5509 GB, free: 7.441 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006077/0.3601, allocations: 3.643 MB / 0.5545 GB, free: 4.719 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005518/0.3607, allocations: 0.827 MB / 0.5553 GB, free: 3.957 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002572/0.361, allocations: 61.58 kB / 0.5553 GB, free: 3.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002461/0.3612, allocations: 157.4 kB / 0.5555 GB, free: 3.797 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3612, allocations: 0 / 0.5555 GB, free: 3.797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04096/0.4022, allocations: 7.757 MB / 0.563 GB, free: 13.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.26, allocations: 11.56 kB / 0.5631 GB, free: 13.53 MB / 414.1 MB " [Timeout remaining time 648] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.048986655892804] Failed to read output from testmodel.py, exit status != 0: 12.3647863289807 12.381131341 12.04591219 Calling exit ...