Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_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.001167/0.001167, allocations: 108 kB / 15.61 MB, free: 152 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.001189/0.001189, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.177/1.177, 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/package.mo): time 0.3527/0.3527, allocations: 31.13 MB / 321.5 MB, free: 4.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 67.89 kB / 389 MB, free: 2.387 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2027, allocations: 56.35 MB / 445.4 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004195/0.2069, allocations: 5.384 MB / 450.7 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007647/0.2077, allocations: 0.6088 MB / 451.3 MB, free: 30.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.2078, allocations: 12.03 kB / 451.4 MB, free: 30.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.208, allocations: 86.45 kB / 451.4 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.2082, allocations: 60 kB / 451.5 MB, free: 30 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.2086, allocations: 186.9 kB / 451.7 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002827/0.2088, allocations: 460.8 kB / 452.1 MB, free: 29.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002324/0.2091, allocations: 217.6 kB / 452.3 MB, free: 29.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.2092, allocations: 183.9 kB / 452.5 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.2094, allocations: 192 kB / 452.7 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.011e-05/0.2094, allocations: 48.53 kB / 452.8 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.82e-05/0.2095, allocations: 61.81 kB / 452.8 MB, free: 29.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.126e-05/0.2096, allocations: 104 kB / 452.9 MB, free: 29.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.2097, allocations: 216.8 kB / 453.1 MB, free: 29.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002647/0.21, allocations: 451.3 kB / 453.6 MB, free: 28.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.21, allocations: 0 / 453.6 MB, free: 28.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.21, allocations: 0 / 453.6 MB, free: 28.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.21, allocations: 0 / 453.6 MB, free: 28.93 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.0007767/0.2108, allocations: 0.6861 MB / 454.3 MB, free: 28.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.787e-05/0.2108, allocations: 7.875 kB / 454.3 MB, free: 28.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.353e-05/0.2109, allocations: 81.77 kB / 454.4 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002478/0.2111, allocations: 64.92 kB / 454.4 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.2114, allocations: 319.9 kB / 454.7 MB, free: 28.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.2114, allocations: 39.5 kB / 454.8 MB, free: 28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.867e-05/0.2115, allocations: 47.28 kB / 454.8 MB, free: 27.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004939/0.212, allocations: 418.2 kB / 455.2 MB, free: 27.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.212, allocations: 3.984 kB / 455.2 MB, free: 27.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.212, allocations: 21 kB / 455.2 MB, free: 27.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.2121, allocations: 8.656 kB / 455.3 MB, free: 27.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004302/0.2125, allocations: 252.6 kB / 455.5 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.2139, allocations: 1.657 MB / 457.2 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004332/0.2143, allocations: 258.2 kB / 457.4 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.2145, allocations: 165.5 kB / 457.6 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.2146, allocations: 2.656 kB / 457.6 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/0.2146, allocations: 41.44 kB / 457.6 MB, free: 26.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.373e-06/0.2146, allocations: 5.375 kB / 457.6 MB, free: 26.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.000643/0.2152, allocations: 342.2 kB / 458 MB, free: 25.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.2153, allocations: 165.8 kB / 458.1 MB, free: 25.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.2155, allocations: 272.6 kB / 458.4 MB, free: 25.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.2155, allocations: 39.3 kB / 458.4 MB, free: 25.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.077e-05/0.2156, allocations: 217.8 kB / 458.6 MB, free: 25.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.284e-05/0.2157, allocations: 79.61 kB / 458.7 MB, free: 25.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.2158, allocations: 103.3 kB / 458.8 MB, free: 25.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.908e-05/0.2158, allocations: 344.2 kB / 459.1 MB, free: 24.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002549/0.2161, allocations: 133.6 kB / 459.3 MB, free: 24.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.2164, allocations: 246.8 kB / 459.5 MB, free: 24.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004221/0.2168, allocations: 347.7 kB / 459.9 MB, free: 24.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2168, allocations: 1.438 kB / 459.9 MB, free: 24.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006653/0.2175, allocations: 451.9 kB / 460.3 MB, free: 24.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.2175, allocations: 6.438 kB / 460.3 MB, free: 24.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2175, allocations: 7.344 kB / 460.3 MB, free: 24.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.2175, allocations: 10.25 kB / 460.3 MB, free: 24.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.2178, allocations: 64.38 kB / 460.4 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.2178, allocations: 10.52 kB / 460.4 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000217/0.218, allocations: 60.41 kB / 460.5 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.218, allocations: 19.77 kB / 460.5 MB, free: 24.25 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.0001275/0.2182, allocations: 181.4 kB / 460.7 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.025e-05/0.2183, allocations: 29.89 kB / 460.7 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.369e-05/0.2183, allocations: 36.12 kB / 460.7 MB, free: 24.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.2183, allocations: 8.594 kB / 460.7 MB, free: 24.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2183, allocations: 1.766 kB / 460.7 MB, free: 24.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.2184, allocations: 6.766 kB / 460.7 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.2195, allocations: 1.178 MB / 461.9 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.2195, allocations: 7.281 kB / 461.9 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.2197, allocations: 40.08 kB / 462 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.2197, allocations: 8.625 kB / 462 MB, free: 23.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.2197, allocations: 14.78 kB / 462 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.2197, allocations: 5.094 kB / 462 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.2198, allocations: 6.406 kB / 462 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006296/0.2204, allocations: 0.5405 MB / 462.5 MB, free: 22.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.042e-05/0.2205, allocations: 129.3 kB / 462.7 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.876e-05/0.2205, allocations: 14.75 kB / 462.7 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.2207, allocations: 24.48 kB / 462.7 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.314e-05/0.2208, allocations: 28.69 kB / 462.7 MB, free: 22.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.2208, allocations: 21.25 kB / 462.7 MB, free: 22.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001329/0.2209, allocations: 182 kB / 462.9 MB, free: 22.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2209, allocations: 3.938 kB / 462.9 MB, free: 22.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003515/0.2213, allocations: 91.97 kB / 463 MB, free: 22.45 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.0007252/0.222, allocations: 1.088 MB / 464.1 MB, free: 21.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005699/0.2226, allocations: 331.1 kB / 464.4 MB, free: 21.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.2226, allocations: 0.9062 kB / 464.4 MB, free: 21.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002405/0.2229, allocations: 145.4 kB / 464.6 MB, free: 21.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005085/0.2234, allocations: 103.6 kB / 464.7 MB, free: 21.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003253/0.2266, allocations: 3.371 MB / 468 MB, free: 18.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.2269, allocations: 0.796 MB / 468.8 MB, free: 18.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001785/0.227, allocations: 56.16 kB / 468.9 MB, free: 18.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.2272, allocations: 117.5 kB / 469 MB, free: 18.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2272, allocations: 0 / 469 MB, free: 18.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03274/0.2599, allocations: 6.294 MB / 475.3 MB, free: 17.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.657/6.917, allocations: 10.73 kB / 475.3 MB, free: 17.39 MB / 350.1 MB (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)