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.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.001638/0.001638, allocations: 108.2 kB / 16.46 MB, free: 6.035 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.001864/0.001864, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.598/1.598, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2366/0.2366, allocations: 31.62 MB / 334.3 MB, free: 10.79 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-main/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_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: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 63.89 kB / 467.2 MB, free: 8.98 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3762, allocations: 59.49 MB / 0.5143 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006356/0.3825, allocations: 5.418 MB / 0.5196 GB, free: 4.062 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.3842, allocations: 0.6134 MB / 0.5202 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000356/0.3845, allocations: 7.906 kB / 0.5202 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003092/0.3848, allocations: 83.55 kB / 0.5203 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002331/0.3851, allocations: 67.8 kB / 0.5204 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006271/0.3857, allocations: 188.8 kB / 0.5205 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005104/0.3862, allocations: 463.7 kB / 0.521 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002851/0.3865, allocations: 158.2 kB / 0.5211 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002417/0.3867, allocations: 199.2 kB / 0.5213 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.387, allocations: 197.4 kB / 0.5215 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.574e-05/0.3871, allocations: 44.75 kB / 0.5216 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.3872, allocations: 55.17 kB / 0.5216 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.3873, allocations: 112.9 kB / 0.5217 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001618/0.3875, allocations: 206.9 kB / 0.5219 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005601/0.388, allocations: 462.3 kB / 0.5224 GB, free: 2.445 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.388, allocations: 1.938 kB / 0.5224 GB, free: 2.445 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.388, allocations: 0 / 0.5224 GB, free: 2.445 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.388, allocations: 0 / 0.5224 GB, free: 2.445 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.001217/0.3893, allocations: 0.7077 MB / 0.523 GB, free: 1.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.3893, allocations: 8.875 kB / 0.5231 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.573e-05/0.3894, allocations: 76.92 kB / 0.5231 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003124/0.3897, allocations: 67.03 kB / 0.5232 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004485/0.3901, allocations: 334.5 kB / 0.5235 GB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.898e-05/0.3902, allocations: 39.56 kB / 0.5235 GB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.12e-05/0.3903, allocations: 51.56 kB / 0.5236 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000727/0.391, allocations: 416.2 kB / 0.524 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.391, allocations: 1.062 kB / 0.524 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.614e-05/0.391, allocations: 20.59 kB / 0.524 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.3911, allocations: 10.25 kB / 0.524 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005708/0.3916, allocations: 247.8 kB / 0.5243 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002134/0.3938, allocations: 1.662 MB / 0.5259 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006526/0.3944, allocations: 238.2 kB / 0.5261 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003368/0.3947, allocations: 151.5 kB / 0.5263 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.3948, allocations: 8.344 kB / 0.5263 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.3948, allocations: 45.75 kB / 0.5263 GB, free: 15.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 2.324e-06/0.3948, allocations: 0 / 0.5263 GB, free: 15.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009347/0.3958, allocations: 357.8 kB / 0.5266 GB, free: 15.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/0.3959, allocations: 162.2 kB / 0.5268 GB, free: 15.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003982/0.3963, allocations: 273.6 kB / 0.5271 GB, free: 15.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.918e-05/0.3963, allocations: 39.11 kB / 0.5271 GB, free: 15.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002166/0.3966, allocations: 214.2 kB / 0.5273 GB, free: 14.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.3967, allocations: 94.33 kB / 0.5274 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.3968, allocations: 100.3 kB / 0.5275 GB, free: 14.76 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.3971, allocations: 341.3 kB / 0.5278 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003677/0.3975, allocations: 136.6 kB / 0.5279 GB, free: 14.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004918/0.3979, allocations: 251.6 kB / 0.5282 GB, free: 14.21 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007163/0.3987, allocations: 351.4 kB / 0.5285 GB, free: 13.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3987, allocations: 1.125 kB / 0.5285 GB, free: 13.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001012/0.3997, allocations: 455.3 kB / 0.529 GB, free: 13.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.3997, allocations: 6.625 kB / 0.529 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.3997, allocations: 4.234 kB / 0.529 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.824e-05/0.3997, allocations: 9.469 kB / 0.529 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002879/0.4, allocations: 63.55 kB / 0.529 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/0.4001, allocations: 11.34 kB / 0.529 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003065/0.4004, allocations: 56.55 kB / 0.5291 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/0.4004, allocations: 19.06 kB / 0.5291 GB, free: 13.73 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.00025/0.4006, allocations: 180.8 kB / 0.5293 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.4008, allocations: 34.22 kB / 0.5293 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.19e-05/0.4009, allocations: 31.62 kB / 0.5294 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.4009, allocations: 8.156 kB / 0.5294 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.4009, allocations: 5.781 kB / 0.5294 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.4009, allocations: 2.719 kB / 0.5294 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002201/0.4031, allocations: 1.181 MB / 0.5305 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.4031, allocations: 3.547 kB / 0.5305 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002636/0.4034, allocations: 41.69 kB / 0.5306 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.4034, allocations: 5.25 kB / 0.5306 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.241e-05/0.4034, allocations: 15.09 kB / 0.5306 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.451e-05/0.4034, allocations: 13.17 kB / 0.5306 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.235e-05/0.4034, allocations: 12.78 kB / 0.5306 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.4047, allocations: 0.5339 MB / 0.5311 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002324/0.4049, allocations: 132.1 kB / 0.5313 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.691e-05/0.405, allocations: 12.53 kB / 0.5313 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.4052, allocations: 18.2 kB / 0.5313 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.4053, allocations: 39.77 kB / 0.5313 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.411e-05/0.4053, allocations: 14.25 kB / 0.5313 GB, free: 12.06 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003557/0.4057, allocations: 179.1 kB / 0.5315 GB, free: 11.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4057, allocations: 0 / 0.5315 GB, free: 11.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006366/0.4063, allocations: 99.88 kB / 0.5316 GB, free: 11.93 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.001623/0.408, allocations: 1.084 MB / 0.5327 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008303/0.4088, allocations: 305.3 kB / 0.533 GB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4088, allocations: 1.188 kB / 0.533 GB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003472/0.4091, allocations: 138 kB / 0.5331 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006773/0.4098, allocations: 92.42 kB / 0.5332 GB, free: 10.83 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006334/0.4161, allocations: 3.365 MB / 0.5365 GB, free: 8.465 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006198/0.4168, allocations: 0.7965 MB / 0.5372 GB, free: 7.762 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003055/0.4171, allocations: 59.64 kB / 0.5373 GB, free: 7.746 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002389/0.4173, allocations: 117.6 kB / 0.5374 GB, free: 7.664 MB / 398.1 MB Notification: Performance of SimCode: time 1.654e-06/0.4173, allocations: 0 / 0.5374 GB, free: 7.664 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03951/0.4568, allocations: 6.416 MB / 0.5437 GB, free: 5.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.41/8.867, allocations: 13.64 kB / 0.5437 GB, free: 5.574 MB / 398.1 MB " [Timeout remaining time 651] (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: 11.798083181958646] Failed to read output from testmodel.py, exit status != 0: 8.942850064020604 8.969418674 8.576279924 Calling exit ...