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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001597/0.001597, allocations: 108 kB / 15.61 MB, free: 128 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.001826/0.001826, allocations: 198.1 kB / 16.53 MB, free: 6.672 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.303/1.303, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2491/0.2491, allocations: 31.18 MB / 321.6 MB, free: 4.438 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 55.91 kB / 389 MB, free: 2.488 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2329, allocations: 56.36 MB / 445.4 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005597/0.2385, allocations: 6.789 MB / 452.2 MB, free: 29.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.2402, allocations: 1.008 MB / 453.2 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003431/0.2405, allocations: 21.47 kB / 453.2 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002586/0.2408, allocations: 104 kB / 453.3 MB, free: 28.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.241, allocations: 73.05 kB / 453.4 MB, free: 28.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005243/0.2415, allocations: 228.4 kB / 453.6 MB, free: 28.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003864/0.2419, allocations: 0.562 MB / 454.2 MB, free: 28.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003206/0.2423, allocations: 313.1 kB / 454.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001683/0.2424, allocations: 226.2 kB / 454.7 MB, free: 28.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.2426, allocations: 240.7 kB / 454.9 MB, free: 28.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.179e-05/0.2427, allocations: 55.31 kB / 455 MB, free: 28.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.248e-05/0.2428, allocations: 71.66 kB / 455.1 MB, free: 28.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.805e-05/0.2429, allocations: 125.1 kB / 455.2 MB, free: 28.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.243, allocations: 262.7 kB / 455.4 MB, free: 27.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003805/0.2434, allocations: 0.5535 MB / 456 MB, free: 27.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2434, allocations: 0 / 456 MB, free: 27.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.2434, allocations: 2.781 kB / 456 MB, free: 27.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.687e-06/0.2435, allocations: 3.938 kB / 456 MB, free: 27.56 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001044/0.2445, allocations: 0.7784 MB / 456.8 MB, free: 26.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.2445, allocations: 8.812 kB / 456.8 MB, free: 26.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.738e-05/0.2446, allocations: 92.42 kB / 456.9 MB, free: 26.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002821/0.2449, allocations: 74.3 kB / 456.9 MB, free: 26.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004227/0.2453, allocations: 387.4 kB / 457.3 MB, free: 26.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.2454, allocations: 49.78 kB / 457.4 MB, free: 26.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.913e-05/0.2455, allocations: 61.25 kB / 457.4 MB, free: 26.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000718/0.2462, allocations: 498.2 kB / 457.9 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.2462, allocations: 8.406 kB / 457.9 MB, free: 26.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.597e-05/0.2463, allocations: 20.09 kB / 457.9 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.2463, allocations: 12.75 kB / 458 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005908/0.2469, allocations: 309.7 kB / 458.3 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002083/0.249, allocations: 1.871 MB / 460.1 MB, free: 24.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006273/0.2496, allocations: 306.8 kB / 460.4 MB, free: 24.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.2499, allocations: 180.1 kB / 460.6 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.2499, allocations: 5.141 kB / 460.6 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.25, allocations: 48.77 kB / 460.7 MB, free: 24.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.805e-06/0.25, allocations: 3.938 kB / 460.7 MB, free: 24.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009129/0.2509, allocations: 383.4 kB / 461 MB, free: 24.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.251, allocations: 163.8 kB / 461.2 MB, free: 24.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003567/0.2513, allocations: 313.2 kB / 461.5 MB, free: 23.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.685e-05/0.2514, allocations: 40.58 kB / 461.5 MB, free: 23.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.2516, allocations: 259.5 kB / 461.8 MB, free: 23.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.667e-05/0.2517, allocations: 95.05 kB / 461.9 MB, free: 23.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.2519, allocations: 106.7 kB / 462 MB, free: 23.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.252, allocations: 348.4 kB / 462.3 MB, free: 23.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003604/0.2523, allocations: 150.1 kB / 462.5 MB, free: 23.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004489/0.2528, allocations: 259.3 kB / 462.7 MB, free: 23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005741/0.2534, allocations: 365.6 kB / 463.1 MB, free: 22.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.2534, allocations: 5.125 kB / 463.1 MB, free: 22.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008142/0.2542, allocations: 481.8 kB / 463.6 MB, free: 22.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2542, allocations: 9.422 kB / 463.6 MB, free: 22.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.2543, allocations: 3.219 kB / 463.6 MB, free: 22.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.2543, allocations: 5.125 kB / 463.6 MB, free: 22.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.2546, allocations: 70.28 kB / 463.7 MB, free: 22.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.2546, allocations: 9.641 kB / 463.7 MB, free: 22.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002779/0.2549, allocations: 61.91 kB / 463.7 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-05/0.2549, allocations: 19.73 kB / 463.7 MB, free: 22.5 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 (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.0001955/0.2551, allocations: 202.9 kB / 463.9 MB, free: 22.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.2552, allocations: 36.91 kB / 464 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.884e-05/0.2553, allocations: 39.86 kB / 464 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.2553, allocations: 4.188 kB / 464 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.2553, allocations: 2.312 kB / 464 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.2554, allocations: 3.016 kB / 464 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001588/0.257, allocations: 1.217 MB / 465.2 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.257, allocations: 2.25 kB / 465.2 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002151/0.2572, allocations: 45.2 kB / 465.3 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-06/0.2572, allocations: 4.031 kB / 465.3 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/0.2572, allocations: 18.97 kB / 465.3 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.2572, allocations: 4 kB / 465.3 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.2573, allocations: 3.094 kB / 465.3 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007915/0.2581, allocations: 0.5593 MB / 465.9 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.2582, allocations: 140.7 kB / 466 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.572e-05/0.2582, allocations: 11.38 kB / 466 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.2584, allocations: 21.69 kB / 466 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.985e-05/0.2585, allocations: 42.91 kB / 466.1 MB, free: 20.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.2586, allocations: 9.844 kB / 466.1 MB, free: 20.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002108/0.2588, allocations: 222.5 kB / 466.3 MB, free: 20.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2588, allocations: 0 / 466.3 MB, free: 20.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004278/0.2592, allocations: 108.2 kB / 466.4 MB, free: 20.69 MB / 350.1 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.0009345/0.2602, allocations: 1.107 MB / 467.5 MB, free: 19.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007449/0.2609, allocations: 365.9 kB / 467.9 MB, free: 19.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.2609, allocations: 5 kB / 467.9 MB, free: 19.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002841/0.2612, allocations: 157.2 kB / 468 MB, free: 19.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005925/0.2618, allocations: 107.2 kB / 468.2 MB, free: 19.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004641/0.2665, allocations: 3.657 MB / 471.8 MB, free: 17.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.2668, allocations: 0.8226 MB / 472.6 MB, free: 16.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002489/0.267, allocations: 65.67 kB / 472.7 MB, free: 16.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.2672, allocations: 157.4 kB / 472.8 MB, free: 16.27 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2672, allocations: 0 / 472.8 MB, free: 16.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02489/0.2921, allocations: 7.304 MB / 480.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.507/7.799, allocations: 1.5 kB / 480.2 MB, free: 14.41 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)