Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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.0007901/0.0007901, 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.0008525/0.0008525, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.8796/0.8796, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.09809/0.09809, allocations: 24.12 MB / 283.3 MB, free: 5.492 MB / 266.7 MB " [Timeout remaining time 180] 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.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 420 MB, free: 5.508 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.712e-05/1.871e-05, allocations: 3.547 kB / 420 MB, free: 5.504 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006076/0.006095, allocations: 6.353 MB / 426.4 MB, free: 1.227 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.00785, allocations: 1.002 MB / 427.4 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003154/0.008166, allocations: 30.06 kB / 427.4 MB, free: 488 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002595/0.008425, allocations: 107.9 kB / 427.5 MB, free: 424 kB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001999/0.008625, allocations: 83.94 kB / 427.6 MB, free: 356 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005643/0.009189, allocations: 232.5 kB / 427.8 MB, free: 216 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005517/0.009741, allocations: 0.5766 MB / 428.4 MB, free: 15.91 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003308/0.01007, allocations: 202.2 kB / 428.6 MB, free: 15.81 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003766/0.01045, allocations: 339.6 kB / 428.9 MB, free: 15.64 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.0107, allocations: 177.8 kB / 429.1 MB, free: 15.57 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.757e-05/0.01077, allocations: 57.53 kB / 429.2 MB, free: 15.57 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.01087, allocations: 63.16 kB / 429.2 MB, free: 15.57 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.011, allocations: 131.4 kB / 429.4 MB, free: 15.48 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.01117, allocations: 175.5 kB / 429.5 MB, free: 15.38 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006012/0.01177, allocations: 0.5855 MB / 430.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.01178, allocations: 0 / 430.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.01178, allocations: 4.5 kB / 430.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.01179, allocations: 0 / 430.1 MB, free: 15.11 MB / 346.7 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.001038/0.01282, allocations: 0.7192 MB / 430.8 MB, free: 14.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.01287, allocations: 10.25 kB / 430.9 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.905e-05/0.01296, allocations: 90.89 kB / 430.9 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002488/0.01321, allocations: 81.09 kB / 431 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005505/0.01376, allocations: 341.6 kB / 431.4 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.903e-05/0.01381, allocations: 46.59 kB / 431.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.085e-05/0.01388, allocations: 61.92 kB / 431.5 MB, free: 14.19 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006887/0.01457, allocations: 0.5464 MB / 432 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.01458, allocations: 3.938 kB / 432 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.01461, allocations: 25.69 kB / 432 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.01463, allocations: 16.97 kB / 432.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004562/0.01508, allocations: 303.6 kB / 432.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.01676, allocations: 1.636 MB / 434 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004835/0.01724, allocations: 288.7 kB / 434.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.01746, allocations: 174.4 kB / 434.4 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.01748, allocations: 9.625 kB / 434.4 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.01751, allocations: 47.55 kB / 434.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.695e-06/0.01751, allocations: 0 / 434.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006103/0.01812, allocations: 387.2 kB / 434.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.577e-05/0.01818, allocations: 159.3 kB / 435 MB, free: 11.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002815/0.01847, allocations: 323.4 kB / 435.3 MB, free: 11.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.0185, allocations: 40.86 kB / 435.4 MB, free: 11.65 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.01865, allocations: 271.1 kB / 435.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.44e-05/0.01871, allocations: 96.44 kB / 435.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.01883, allocations: 102.8 kB / 435.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.768e-05/0.01892, allocations: 347 kB / 436.2 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002244/0.01915, allocations: 146.3 kB / 436.3 MB, free: 10.92 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002905/0.01944, allocations: 295.9 kB / 436.6 MB, free: 10.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004065/0.01985, allocations: 367 kB / 437 MB, free: 10.44 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.01985, allocations: 5.031 kB / 437 MB, free: 10.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0005925/0.02044, allocations: 474.4 kB / 437.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.02046, allocations: 7.344 kB / 437.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.02047, allocations: 7.25 kB / 437.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.02049, allocations: 9.469 kB / 437.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.02065, allocations: 70.27 kB / 437.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.02066, allocations: 9.688 kB / 437.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/0.02083, allocations: 62.16 kB / 437.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.02085, allocations: 18.78 kB / 437.6 MB, free: 10.11 MB / 346.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 (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.0001717/0.02103, allocations: 197.1 kB / 437.8 MB, free: 9.945 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.766e-05/0.02109, allocations: 40.77 kB / 437.9 MB, free: 9.922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.022e-05/0.02115, allocations: 44.3 kB / 437.9 MB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.02116, allocations: 12.25 kB / 437.9 MB, free: 9.875 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.02117, allocations: 5.266 kB / 437.9 MB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.02117, allocations: 1.312 kB / 437.9 MB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001285/0.02246, allocations: 1.142 MB / 439.1 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.02246, allocations: 2.156 kB / 439.1 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.0226, allocations: 42.06 kB / 439.1 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.02261, allocations: 3.25 kB / 439.1 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.309e-05/0.02263, allocations: 18.27 kB / 439.1 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.89e-06/0.02264, allocations: 11.31 kB / 439.1 MB, free: 8.891 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.02264, allocations: 2.719 kB / 439.1 MB, free: 8.891 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006048/0.02324, allocations: 0.5567 MB / 439.7 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.02336, allocations: 64.47 kB / 439.8 MB, free: 8.445 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.137e-05/0.02339, allocations: 9.469 kB / 439.8 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.02351, allocations: 24.47 kB / 439.8 MB, free: 8.426 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.651e-05/0.02358, allocations: 41.39 kB / 439.8 MB, free: 8.398 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.0236, allocations: 8.219 kB / 439.8 MB, free: 8.398 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001663/0.02376, allocations: 210.5 kB / 440 MB, free: 8.258 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02376, allocations: 0 / 440 MB, free: 8.258 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003418/0.02411, allocations: 107.7 kB / 440.1 MB, free: 8.227 MB / 346.7 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.0008102/0.02492, allocations: 1.134 MB / 441.3 MB, free: 7.266 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004979/0.02541, allocations: 330.4 kB / 441.6 MB, free: 7.125 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.02542, allocations: 0 / 441.6 MB, free: 7.125 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001936/0.02561, allocations: 152 kB / 441.8 MB, free: 7.059 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004277/0.02604, allocations: 103.7 kB / 441.9 MB, free: 7.008 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00358/0.02962, allocations: 3.612 MB / 445.5 MB, free: 4.332 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.02979, allocations: 225.4 kB / 445.7 MB, free: 4.184 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001938/0.02998, allocations: 73.27 kB / 445.8 MB, free: 4.141 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.03015, allocations: 153.8 kB / 445.9 MB, free: 4.016 MB / 346.7 MB Notification: Performance of SimCode: time 1.142e-06/0.03015, allocations: 0.9375 kB / 445.9 MB, free: 4.016 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02426/0.05441, allocations: 8.507 MB / 454.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.909/6.963, allocations: 5.75 kB / 454.4 MB, free: 12.46 MB / 362.7 MB " [Timeout remaining time 653] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.84026557020843] Failed to read output from testmodel.py, exit status != 0: 7.045782899484038 7.055177735 7.041620578 Calling exit ...