Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/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_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_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.00118/0.00118, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 187.6 kB / 16.25 MB, free: 6.633 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.34/1.34, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.8699/0.8699, allocations: 31.12 MB / 321.2 MB, free: 4.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.0012, allocations: 63.91 kB / 388.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2263, allocations: 56.36 MB / 444.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005865/0.2322, allocations: 7.316 MB / 452.2 MB, free: 29.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.2338, allocations: 1.077 MB / 453.3 MB, free: 28.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003082/0.2341, allocations: 25.03 kB / 453.3 MB, free: 28.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002482/0.2344, allocations: 79.42 kB / 453.4 MB, free: 28.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000186/0.2346, allocations: 54.64 kB / 453.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004879/0.2351, allocations: 201.2 kB / 453.6 MB, free: 28.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003907/0.2355, allocations: 0.5637 MB / 454.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003311/0.2358, allocations: 304.6 kB / 454.5 MB, free: 27.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.236, allocations: 222.6 kB / 454.7 MB, free: 27.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.2362, allocations: 238.6 kB / 454.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.923e-05/0.2362, allocations: 58.94 kB / 455 MB, free: 27.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.689e-05/0.2363, allocations: 61.19 kB / 455 MB, free: 27.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.284e-05/0.2364, allocations: 138.9 kB / 455.2 MB, free: 27.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.2365, allocations: 258.8 kB / 455.4 MB, free: 27.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.2369, allocations: 0.5504 MB / 456 MB, free: 27.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2369, allocations: 4 kB / 456 MB, free: 27.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2369, allocations: 3.938 kB / 456 MB, free: 27.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.2369, allocations: 2.781 kB / 456 MB, free: 27.02 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.001027/0.238, allocations: 0.7833 MB / 456.8 MB, free: 26.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.238, allocations: 11.94 kB / 456.8 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.863e-05/0.2381, allocations: 96.72 kB / 456.9 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002842/0.2384, allocations: 76.59 kB / 457 MB, free: 26.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003782/0.2388, allocations: 388.9 kB / 457.3 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.567e-05/0.2388, allocations: 48.62 kB / 457.4 MB, free: 25.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.118e-05/0.2389, allocations: 56.97 kB / 457.4 MB, free: 25.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007483/0.2397, allocations: 0.4948 MB / 457.9 MB, free: 25.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.2397, allocations: 0 / 457.9 MB, free: 25.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.761e-05/0.2397, allocations: 21.44 kB / 458 MB, free: 25.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.2397, allocations: 16.42 kB / 458 MB, free: 25.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005892/0.2403, allocations: 309.4 kB / 458.3 MB, free: 25.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.2422, allocations: 1.87 MB / 460.1 MB, free: 24.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005707/0.2428, allocations: 309.2 kB / 460.4 MB, free: 24.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002734/0.2431, allocations: 171.3 kB / 460.6 MB, free: 23.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.2431, allocations: 11.78 kB / 460.6 MB, free: 23.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.726e-05/0.2431, allocations: 46.27 kB / 460.7 MB, free: 23.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.2432, allocations: 0 / 460.7 MB, free: 23.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008054/0.244, allocations: 378.8 kB / 461 MB, free: 23.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.179e-05/0.244, allocations: 159.6 kB / 461.2 MB, free: 23.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002826/0.2443, allocations: 324.6 kB / 461.5 MB, free: 23.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.741e-05/0.2444, allocations: 42.2 kB / 461.6 MB, free: 23.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.2445, allocations: 254.2 kB / 461.8 MB, free: 23.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.073e-05/0.2445, allocations: 101 kB / 461.9 MB, free: 23.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.2447, allocations: 102.4 kB / 462 MB, free: 22.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.919e-05/0.2447, allocations: 348.6 kB / 462.3 MB, free: 22.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000318/0.2451, allocations: 144.5 kB / 462.5 MB, free: 22.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003606/0.2454, allocations: 258.8 kB / 462.7 MB, free: 22.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000547/0.246, allocations: 367.3 kB / 463.1 MB, free: 22.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.246, allocations: 1.031 kB / 463.1 MB, free: 22.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008533/0.2469, allocations: 484.9 kB / 463.6 MB, free: 21.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.2469, allocations: 6.781 kB / 463.6 MB, free: 21.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.2469, allocations: 3.625 kB / 463.6 MB, free: 21.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.2469, allocations: 6.734 kB / 463.6 MB, free: 21.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002988/0.2472, allocations: 77.33 kB / 463.7 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.2473, allocations: 7.25 kB / 463.7 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.2475, allocations: 60.2 kB / 463.7 MB, free: 21.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.2476, allocations: 19.75 kB / 463.7 MB, free: 21.93 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.0001819/0.2478, allocations: 195.5 kB / 463.9 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.2479, allocations: 35.75 kB / 464 MB, free: 21.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.247e-05/0.248, allocations: 48.72 kB / 464 MB, free: 21.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.248, allocations: 4.469 kB / 464 MB, free: 21.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.248, allocations: 1.125 kB / 464 MB, free: 21.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.248, allocations: 2.891 kB / 464 MB, free: 21.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001439/0.2495, allocations: 1.22 MB / 465.2 MB, free: 20.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2495, allocations: 2.438 kB / 465.3 MB, free: 20.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/0.2497, allocations: 41.05 kB / 465.3 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2497, allocations: 7.938 kB / 465.3 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.2497, allocations: 18.44 kB / 465.3 MB, free: 20.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.2498, allocations: 13.27 kB / 465.3 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.2498, allocations: 3.125 kB / 465.3 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007804/0.2505, allocations: 0.5624 MB / 465.9 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.2507, allocations: 139 kB / 466 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.998e-05/0.2507, allocations: 14.48 kB / 466 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.2509, allocations: 17.59 kB / 466.1 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.2511, allocations: 35.52 kB / 466.1 MB, free: 20.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.2511, allocations: 9.422 kB / 466.1 MB, free: 20.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002066/0.2513, allocations: 214.5 kB / 466.3 MB, free: 20.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2513, allocations: 0 / 466.3 MB, free: 20.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004306/0.2517, allocations: 115.9 kB / 466.4 MB, free: 20.12 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.0009537/0.2527, allocations: 1.101 MB / 467.5 MB, free: 19.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007293/0.2534, allocations: 377 kB / 467.9 MB, free: 19.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2535, allocations: 0 / 467.9 MB, free: 19.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002934/0.2538, allocations: 157.6 kB / 468.1 MB, free: 19.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000628/0.2544, allocations: 108 kB / 468.2 MB, free: 19.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004371/0.2588, allocations: 3.823 MB / 472 MB, free: 16.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.2591, allocations: 0.8297 MB / 472.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002618/0.2593, allocations: 66.78 kB / 472.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/0.2595, allocations: 156.9 kB / 473 MB, free: 15.51 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2596, allocations: 0 / 473 MB, free: 15.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3526/0.6122, allocations: 7.096 MB / 480.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001392/0.6124, allocations: 214.1 kB / 480.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.285/2.898, allocations: 0 / 480.3 MB, free: 13.61 MB / 350.1 MB (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)