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.001281/0.001281, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001382/0.001382, allocations: 214.2 kB / 23.04 MB, free: 5.07 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.521/1.521, allocations: 230.6 MB / 256.8 MB, free: 7.977 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.2595/0.2595, allocations: 31.55 MB / 344.8 MB, free: 3.961 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",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.002883/0.002883, allocations: 71.88 kB / 481.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3282, allocations: 60.71 MB / 0.5296 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.00641/0.3346, allocations: 5.509 MB / 0.535 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.336, allocations: 0.6166 MB / 0.5356 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/0.3363, allocations: 15.78 kB / 0.5356 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002911/0.3366, allocations: 75.03 kB / 0.5357 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002125/0.3368, allocations: 68.36 kB / 0.5357 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005391/0.3373, allocations: 199 kB / 0.5359 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004484/0.3378, allocations: 464.4 kB / 0.5364 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002485/0.338, allocations: 158.8 kB / 0.5365 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002007/0.3382, allocations: 193.7 kB / 0.5367 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002393/0.3385, allocations: 201.6 kB / 0.5369 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.282e-05/0.3385, allocations: 44.72 kB / 0.5369 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.192e-05/0.3386, allocations: 55.33 kB / 0.537 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.639e-05/0.3387, allocations: 102.2 kB / 0.5371 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.3389, allocations: 215 kB / 0.5373 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005912/0.3395, allocations: 458.9 kB / 0.5377 GB, free: 2.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3395, allocations: 0 / 0.5377 GB, free: 2.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3395, allocations: 4.562 kB / 0.5377 GB, free: 2.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.3395, allocations: 0.9062 kB / 0.5377 GB, free: 2.113 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.00112/0.3406, allocations: 0.6211 MB / 0.5383 GB, free: 1.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.3407, allocations: 10.41 kB / 0.5384 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.322e-05/0.3407, allocations: 14.69 kB / 0.5384 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.57e-05/0.3407, allocations: 76.83 kB / 0.5384 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002983/0.341, allocations: 66.23 kB / 0.5385 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.3414, allocations: 271.2 kB / 0.5388 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.85e-05/0.3415, allocations: 40.75 kB / 0.5388 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.716e-05/0.3415, allocations: 51.48 kB / 0.5388 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006342/0.3422, allocations: 418.2 kB / 0.5392 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.3422, allocations: 9.062 kB / 0.5393 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.234e-05/0.3422, allocations: 16.47 kB / 0.5393 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.3422, allocations: 15 kB / 0.5393 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000477/0.3427, allocations: 244.7 kB / 0.5395 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001781/0.3445, allocations: 1.624 MB / 0.5411 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000575/0.345, allocations: 244.1 kB / 0.5413 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.3453, allocations: 153.7 kB / 0.5415 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.3454, allocations: 3.156 kB / 0.5415 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.971e-05/0.3454, allocations: 38.06 kB / 0.5415 GB, free: 15.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 2.034e-06/0.3454, allocations: 0 / 0.5415 GB, free: 15.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.000867/0.3463, allocations: 350.7 kB / 0.5419 GB, free: 14.97 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.3464, allocations: 161.2 kB / 0.542 GB, free: 14.78 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003378/0.3467, allocations: 268.6 kB / 0.5423 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.292e-05/0.3468, allocations: 39.2 kB / 0.5423 GB, free: 14.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.347, allocations: 225.5 kB / 0.5425 GB, free: 14.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.936e-05/0.3471, allocations: 91.64 kB / 0.5426 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.3473, allocations: 100.6 kB / 0.5427 GB, free: 14.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.3474, allocations: 343 kB / 0.543 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000317/0.3478, allocations: 135 kB / 0.5432 GB, free: 13.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/0.3482, allocations: 251.9 kB / 0.5434 GB, free: 13.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006372/0.3488, allocations: 345.5 kB / 0.5437 GB, free: 13.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.3488, allocations: 1.375 kB / 0.5437 GB, free: 13.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009243/0.3497, allocations: 448.7 kB / 0.5442 GB, free: 13.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3498, allocations: 6.25 kB / 0.5442 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3498, allocations: 3.75 kB / 0.5442 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.3498, allocations: 9.656 kB / 0.5442 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002785/0.3501, allocations: 65.23 kB / 0.5442 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.3501, allocations: 6.344 kB / 0.5442 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00029/0.3504, allocations: 57.5 kB / 0.5443 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.672e-05/0.3504, allocations: 22.95 kB / 0.5443 GB, free: 13.04 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.0002611/0.3507, allocations: 180.1 kB / 0.5445 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.3508, allocations: 33.22 kB / 0.5445 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.928e-05/0.3509, allocations: 36.8 kB / 0.5446 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3509, allocations: 4.281 kB / 0.5446 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.3509, allocations: 5.094 kB / 0.5446 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3509, allocations: 9.016 kB / 0.5446 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/0.3526, allocations: 1.151 MB / 0.5457 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.3526, allocations: 3.406 kB / 0.5457 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.3528, allocations: 42.09 kB / 0.5457 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.989e-06/0.3528, allocations: 10.16 kB / 0.5458 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.3528, allocations: 10 kB / 0.5458 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.3528, allocations: 12.69 kB / 0.5458 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.3528, allocations: 3.781 kB / 0.5458 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008873/0.3537, allocations: 0.5402 MB / 0.5463 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.3539, allocations: 51.94 kB / 0.5464 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.018e-05/0.3539, allocations: 15.28 kB / 0.5464 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.3541, allocations: 13.11 kB / 0.5464 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.548e-05/0.3542, allocations: 39.89 kB / 0.5464 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.3542, allocations: 17.12 kB / 0.5464 GB, free: 11.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002004/0.3544, allocations: 175.7 kB / 0.5466 GB, free: 11.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3544, allocations: 1.281 kB / 0.5466 GB, free: 11.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000486/0.3549, allocations: 94.66 kB / 0.5467 GB, free: 11.15 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.001128/0.356, allocations: 1.086 MB / 0.5478 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006928/0.3567, allocations: 326.2 kB / 0.5481 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3567, allocations: 5.25 kB / 0.5481 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002805/0.357, allocations: 136.7 kB / 0.5482 GB, free: 9.984 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005966/0.3576, allocations: 91.45 kB / 0.5483 GB, free: 9.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004682/0.3623, allocations: 3.372 MB / 0.5516 GB, free: 7.305 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004481/0.3627, allocations: 0.7935 MB / 0.5524 GB, free: 6.559 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000214/0.3629, allocations: 51.38 kB / 0.5524 GB, free: 6.535 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.3631, allocations: 122.7 kB / 0.5525 GB, free: 6.438 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3631, allocations: 3.938 kB / 0.5525 GB, free: 6.434 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03145/0.3946, allocations: 6.792 MB / 0.5592 GB, free: 2.184 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.94, allocations: 0 / 0.5592 GB, free: 2.184 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.95097014599014] Failed to read output from testmodel.py, exit status != 0: 12.10673499898985 12.132470153 11.788639167 Calling exit ...