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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.00129, allocations: 192.1 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3931/0.3931, allocations: 31.17 MB / 321.6 MB, free: 4.344 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.91 kB / 389 MB, free: 2.414 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2448, allocations: 56.35 MB / 445.4 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005324/0.2502, allocations: 5.391 MB / 450.8 MB, free: 30.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.2513, allocations: 0.6154 MB / 451.4 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000188/0.2515, allocations: 13.94 kB / 451.4 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002131/0.2517, allocations: 83.03 kB / 451.5 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.2519, allocations: 63.03 kB / 451.6 MB, free: 30.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004598/0.2524, allocations: 190.9 kB / 451.7 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003578/0.2527, allocations: 459.7 kB / 452.2 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000281/0.253, allocations: 212 kB / 452.4 MB, free: 29.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.2532, allocations: 191.5 kB / 452.6 MB, free: 29.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.2534, allocations: 194.2 kB / 452.8 MB, free: 29.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.618e-05/0.2535, allocations: 43.91 kB / 452.8 MB, free: 29.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.686e-05/0.2536, allocations: 57.67 kB / 452.9 MB, free: 29.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.606e-05/0.2537, allocations: 102.4 kB / 453 MB, free: 29.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.2538, allocations: 215.8 kB / 453.2 MB, free: 29.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.2541, allocations: 449.6 kB / 453.6 MB, free: 29.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2542, allocations: 4 kB / 453.6 MB, free: 29.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2542, allocations: 0 / 453.6 MB, free: 29.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.2542, allocations: 0 / 453.6 MB, free: 29.22 MB / 350.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.0009486/0.2551, allocations: 0.6822 MB / 454.3 MB, free: 28.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2552, allocations: 10.97 kB / 454.3 MB, free: 28.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.362e-05/0.2552, allocations: 76.98 kB / 454.4 MB, free: 28.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002779/0.2555, allocations: 67.45 kB / 454.5 MB, free: 28.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.2558, allocations: 324.5 kB / 454.8 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.2559, allocations: 42.56 kB / 454.8 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.862e-05/0.2559, allocations: 45.12 kB / 454.9 MB, free: 28.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005488/0.2565, allocations: 419.7 kB / 455.3 MB, free: 28.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.2565, allocations: 0 / 455.3 MB, free: 28.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.2566, allocations: 14.62 kB / 455.3 MB, free: 28.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.2566, allocations: 10.69 kB / 455.3 MB, free: 28.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004772/0.2571, allocations: 250.6 kB / 455.5 MB, free: 27.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.2586, allocations: 1.657 MB / 457.2 MB, free: 26.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004829/0.2591, allocations: 261.9 kB / 457.5 MB, free: 26.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002266/0.2594, allocations: 156.2 kB / 457.6 MB, free: 26.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.2594, allocations: 6.406 kB / 457.6 MB, free: 26.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.534e-05/0.2594, allocations: 38.44 kB / 457.7 MB, free: 26.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.473e-06/0.2594, allocations: 0 / 457.7 MB, free: 26.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0006967/0.2601, allocations: 356 kB / 458 MB, free: 26.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.2602, allocations: 165.2 kB / 458.2 MB, free: 26.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002398/0.2604, allocations: 272.9 kB / 458.4 MB, free: 25.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.2605, allocations: 40.72 kB / 458.5 MB, free: 25.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.2606, allocations: 213.3 kB / 458.7 MB, free: 25.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.652e-05/0.2607, allocations: 85.44 kB / 458.8 MB, free: 25.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.2608, allocations: 101.1 kB / 458.9 MB, free: 25.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.011e-05/0.2609, allocations: 352.2 kB / 459.2 MB, free: 25.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002883/0.2612, allocations: 133.1 kB / 459.3 MB, free: 25.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003362/0.2615, allocations: 244.6 kB / 459.6 MB, free: 25.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005409/0.262, allocations: 346.7 kB / 459.9 MB, free: 24.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.2621, allocations: 2.812 kB / 459.9 MB, free: 24.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009055/0.263, allocations: 450.1 kB / 460.4 MB, free: 24.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.263, allocations: 10.75 kB / 460.4 MB, free: 24.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.263, allocations: 2.656 kB / 460.4 MB, free: 24.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.2631, allocations: 10.59 kB / 460.4 MB, free: 24.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.2633, allocations: 59.55 kB / 460.4 MB, free: 24.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.2633, allocations: 6.719 kB / 460.4 MB, free: 24.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.2636, allocations: 55.91 kB / 460.5 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.2636, allocations: 19.34 kB / 460.5 MB, free: 24.55 MB / 350.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.0001757/0.2638, allocations: 197.5 kB / 460.7 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.2639, allocations: 29.72 kB / 460.7 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.166e-05/0.264, allocations: 30.17 kB / 460.8 MB, free: 24.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.264, allocations: 7.875 kB / 460.8 MB, free: 24.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.264, allocations: 1.344 kB / 460.8 MB, free: 24.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.264, allocations: 4.734 kB / 460.8 MB, free: 24.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001333/0.2654, allocations: 1.178 MB / 462 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.2654, allocations: 7.453 kB / 462 MB, free: 23.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.2656, allocations: 42.58 kB / 462 MB, free: 23.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.2656, allocations: 3.875 kB / 462 MB, free: 23.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.2656, allocations: 18.34 kB / 462 MB, free: 23.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.2656, allocations: 7.844 kB / 462 MB, free: 23.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.2657, allocations: 3.719 kB / 462 MB, free: 23.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007235/0.2664, allocations: 0.5425 MB / 462.6 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.765e-05/0.2665, allocations: 131 kB / 462.7 MB, free: 22.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.606e-05/0.2665, allocations: 16.28 kB / 462.7 MB, free: 22.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.2667, allocations: 22.94 kB / 462.7 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.114e-05/0.2668, allocations: 26.05 kB / 462.8 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.2669, allocations: 18.25 kB / 462.8 MB, free: 22.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00018/0.2671, allocations: 182.4 kB / 463 MB, free: 22.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2671, allocations: 0 / 463 MB, free: 22.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004621/0.2675, allocations: 88.03 kB / 463.1 MB, free: 22.75 MB / 350.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.001134/0.2687, allocations: 1.096 MB / 464.2 MB, free: 21.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000654/0.2693, allocations: 332.6 kB / 464.5 MB, free: 21.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.2694, allocations: 1.562 kB / 464.5 MB, free: 21.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002454/0.2696, allocations: 143 kB / 464.6 MB, free: 21.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005741/0.2702, allocations: 95.84 kB / 464.7 MB, free: 21.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003848/0.274, allocations: 3.372 MB / 468.1 MB, free: 19.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.2743, allocations: 0.7917 MB / 468.9 MB, free: 18.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000206/0.2745, allocations: 56.08 kB / 468.9 MB, free: 18.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.2747, allocations: 117 kB / 469 MB, free: 18.44 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2747, allocations: 4 kB / 469 MB, free: 18.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0253/0.3, allocations: 6.3 MB / 475.3 MB, free: 17.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.391/7.691, allocations: 2.562 kB / 475.4 MB, free: 17.55 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)