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.0009261/0.0009261, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0009534/0.0009534, 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.8875/0.8875, allocations: 177.2 MB / 202.8 MB, free: 5.738 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.1072/0.1072, allocations: 24.12 MB / 283.3 MB, free: 5.465 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.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 4.358e-06/4.358e-06, allocations: 4 kB / 420 MB, free: 8.523 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.843e-05/2.279e-05, allocations: 6.219 kB / 420 MB, free: 8.516 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005662/0.005685, allocations: 5.101 MB / 425.1 MB, free: 3.387 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.006723, allocations: 0.6073 MB / 425.7 MB, free: 2.777 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002056/0.006928, allocations: 15.88 kB / 425.8 MB, free: 2.762 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002138/0.007142, allocations: 79.27 kB / 425.8 MB, free: 2.684 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.007309, allocations: 71.31 kB / 425.9 MB, free: 2.613 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004552/0.007764, allocations: 199.4 kB / 426.1 MB, free: 2.418 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003661/0.00813, allocations: 467.1 kB / 426.6 MB, free: 1.961 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.008354, allocations: 146.8 kB / 426.7 MB, free: 1.812 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.008597, allocations: 287.4 kB / 427 MB, free: 1.531 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001593/0.008756, allocations: 135.5 kB / 427.1 MB, free: 1.398 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.349e-05/0.0088, allocations: 48 kB / 427.2 MB, free: 1.352 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.286e-05/0.008872, allocations: 59.92 kB / 427.2 MB, free: 1.293 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 7.925e-05/0.008952, allocations: 111.6 kB / 427.3 MB, free: 1.184 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.009052, allocations: 151.6 kB / 427.5 MB, free: 1.035 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003687/0.00942, allocations: 462.5 kB / 427.9 MB, free: 0.582 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.009424, allocations: 0 / 427.9 MB, free: 0.582 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.009426, allocations: 0 / 427.9 MB, free: 0.582 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.009433, allocations: 0 / 427.9 MB, free: 0.582 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.0008531/0.01029, allocations: 0.6254 MB / 428.6 MB, free: 15.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.01032, allocations: 12.75 kB / 428.6 MB, free: 15.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.02e-05/0.01038, allocations: 82.72 kB / 428.6 MB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002044/0.01059, allocations: 68.61 kB / 428.7 MB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.01091, allocations: 265 kB / 429 MB, free: 15.47 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.01094, allocations: 37.38 kB / 429 MB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.818e-05/0.01099, allocations: 44.38 kB / 429.1 MB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/0.01149, allocations: 474.8 kB / 429.5 MB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.01151, allocations: 7.938 kB / 429.5 MB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.01153, allocations: 19.98 kB / 429.5 MB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.01154, allocations: 8 kB / 429.6 MB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00032/0.01186, allocations: 247.8 kB / 429.8 MB, free: 14.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.01321, allocations: 1.455 MB / 431.2 MB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003777/0.01359, allocations: 253.2 kB / 431.5 MB, free: 12.81 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.01375, allocations: 151.3 kB / 431.6 MB, free: 12.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.01376, allocations: 11.94 kB / 431.7 MB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.01378, allocations: 34.56 kB / 431.7 MB, free: 12.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=28): time 1.473e-06/0.01378, allocations: 0 / 431.7 MB, free: 12.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007008/0.01448, allocations: 350 kB / 432 MB, free: 12.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.01455, allocations: 162.2 kB / 432.2 MB, free: 12.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.01476, allocations: 273.7 kB / 432.5 MB, free: 11.77 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.01479, allocations: 41.7 kB / 432.5 MB, free: 11.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.0149, allocations: 220.6 kB / 432.7 MB, free: 11.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.121e-05/0.01496, allocations: 87.27 kB / 432.8 MB, free: 11.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.01506, allocations: 102.1 kB / 432.9 MB, free: 11.31 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.492e-05/0.01516, allocations: 342.8 kB / 433.2 MB, free: 10.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/0.01535, allocations: 132.9 kB / 433.4 MB, free: 10.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/0.01558, allocations: 274.9 kB / 433.6 MB, free: 10.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005126/0.0161, allocations: 350.7 kB / 434 MB, free: 10.13 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.01611, allocations: 4 kB / 434 MB, free: 10.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006158/0.01672, allocations: 442.1 kB / 434.4 MB, free: 9.691 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.01674, allocations: 15.92 kB / 434.4 MB, free: 9.676 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.01675, allocations: 7.938 kB / 434.4 MB, free: 9.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.01677, allocations: 7.984 kB / 434.4 MB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.01693, allocations: 55.91 kB / 434.5 MB, free: 9.605 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.01694, allocations: 7.938 kB / 434.5 MB, free: 9.598 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001666/0.0171, allocations: 67.53 kB / 434.6 MB, free: 9.531 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.01712, allocations: 20.06 kB / 434.6 MB, free: 9.512 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.0001724/0.0173, allocations: 191 kB / 434.8 MB, free: 9.316 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.926e-05/0.01735, allocations: 23.86 kB / 434.8 MB, free: 9.293 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.713e-05/0.0174, allocations: 34.27 kB / 434.8 MB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.01741, allocations: 4 kB / 434.8 MB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.01741, allocations: 0 / 434.8 MB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.01742, allocations: 7.922 kB / 434.8 MB, free: 9.246 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.01852, allocations: 1.126 MB / 436 MB, free: 8.023 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.01853, allocations: 4 kB / 436 MB, free: 8.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.01864, allocations: 43.91 kB / 436 MB, free: 7.977 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.01864, allocations: 4 kB / 436 MB, free: 7.973 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.01866, allocations: 12 kB / 436 MB, free: 7.961 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.01867, allocations: 8.344 kB / 436 MB, free: 7.953 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.01867, allocations: 11.94 kB / 436 MB, free: 7.941 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004985/0.01917, allocations: 0.5291 MB / 436.6 MB, free: 7.355 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.654e-05/0.01924, allocations: 51.8 kB / 436.6 MB, free: 7.305 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.831e-05/0.01927, allocations: 15.92 kB / 436.6 MB, free: 7.289 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.01938, allocations: 19.98 kB / 436.7 MB, free: 7.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.707e-05/0.01944, allocations: 35.89 kB / 436.7 MB, free: 7.234 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.01945, allocations: 19.94 kB / 436.7 MB, free: 7.215 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001159/0.01957, allocations: 177.2 kB / 436.9 MB, free: 7.043 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.01957, allocations: 0 / 436.9 MB, free: 7.043 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002975/0.01987, allocations: 95.72 kB / 437 MB, free: 6.949 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.0006181/0.02049, allocations: 1.081 MB / 438.1 MB, free: 5.805 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004001/0.02089, allocations: 319.9 kB / 438.4 MB, free: 5.492 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.02089, allocations: 0.8125 kB / 438.4 MB, free: 5.492 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000158/0.02105, allocations: 143.1 kB / 438.5 MB, free: 5.355 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.02141, allocations: 94.8 kB / 438.6 MB, free: 5.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/0.0242, allocations: 3.337 MB / 441.9 MB, free: 1.688 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.02432, allocations: 195.4 kB / 442.1 MB, free: 1.473 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.02445, allocations: 51.25 kB / 442.2 MB, free: 1.422 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.02457, allocations: 116.5 kB / 442.3 MB, free: 1.309 MB / 410.7 MB Notification: Performance of SimCode: time 3.91e-07/0.02457, allocations: 0 / 442.3 MB, free: 1.309 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1408/0.1654, allocations: 7.461 MB / 449.8 MB, free: 62.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.887/7.053, allocations: 7.969 kB / 449.8 MB, free: 62.47 MB / 410.7 MB " [Timeout remaining time 653] (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: 8.828953587450087] Failed to read output from testmodel.py, exit status != 0: 7.1380508886650205 7.144994307 7.133828166 Calling exit ...