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.001139/0.001139, 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.001089/0.001089, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.173/1.173, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2451/0.2451, allocations: 31.12 MB / 321.5 MB, free: 4.309 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 63.89 kB / 389 MB, free: 2.363 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2026, allocations: 56.34 MB / 445.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.004947/0.2076, allocations: 6.799 MB / 452.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.2088, allocations: 1.002 MB / 453.1 MB, free: 29.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002334/0.209, allocations: 21 kB / 453.2 MB, free: 29.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000216/0.2092, allocations: 104.5 kB / 453.3 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001675/0.2094, allocations: 82.59 kB / 453.3 MB, free: 29.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004132/0.2098, allocations: 226 kB / 453.6 MB, free: 28.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000325/0.2102, allocations: 0.5616 MB / 454.1 MB, free: 28.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002885/0.2105, allocations: 307.9 kB / 454.4 MB, free: 28.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.2106, allocations: 221.6 kB / 454.6 MB, free: 28.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001641/0.2108, allocations: 240.2 kB / 454.9 MB, free: 28.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.697e-05/0.2108, allocations: 57.88 kB / 454.9 MB, free: 28.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.268e-05/0.2109, allocations: 65 kB / 455 MB, free: 28.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.029e-05/0.211, allocations: 136.1 kB / 455.1 MB, free: 28.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.2112, allocations: 264.9 kB / 455.4 MB, free: 27.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00031/0.2115, allocations: 0.5481 MB / 455.9 MB, free: 27.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2115, allocations: 7.938 kB / 456 MB, free: 27.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2115, allocations: 0 / 456 MB, free: 27.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.2115, allocations: 0 / 456 MB, free: 27.68 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.0008685/0.2124, allocations: 0.7788 MB / 456.7 MB, free: 27.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.802e-05/0.2124, allocations: 9.875 kB / 456.7 MB, free: 27.08 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.682e-05/0.2125, allocations: 91.33 kB / 456.8 MB, free: 27.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002607/0.2127, allocations: 76.92 kB / 456.9 MB, free: 26.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003468/0.2131, allocations: 394.1 kB / 457.3 MB, free: 26.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.2131, allocations: 48.44 kB / 457.3 MB, free: 26.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.927e-05/0.2132, allocations: 62.02 kB / 457.4 MB, free: 26.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006295/0.2138, allocations: 0.4944 MB / 457.9 MB, free: 26.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.2139, allocations: 0 / 457.9 MB, free: 26.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.13e-05/0.2139, allocations: 21.25 kB / 457.9 MB, free: 26.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.2139, allocations: 13 kB / 457.9 MB, free: 26.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005381/0.2145, allocations: 311.4 kB / 458.2 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.2161, allocations: 1.868 MB / 460.1 MB, free: 24.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005137/0.2166, allocations: 299.9 kB / 460.4 MB, free: 24.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.2169, allocations: 185 kB / 460.6 MB, free: 24.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.2169, allocations: 13.17 kB / 460.6 MB, free: 24.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.2169, allocations: 41.14 kB / 460.6 MB, free: 24.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.834e-06/0.2169, allocations: 0 / 460.6 MB, free: 24.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007503/0.2177, allocations: 391.9 kB / 461 MB, free: 24.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.2177, allocations: 157.6 kB / 461.2 MB, free: 24.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002543/0.218, allocations: 318.9 kB / 461.5 MB, free: 24.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.218, allocations: 40.09 kB / 461.5 MB, free: 24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.2181, allocations: 256.3 kB / 461.8 MB, free: 23.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.11e-05/0.2182, allocations: 98.22 kB / 461.9 MB, free: 23.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.2183, allocations: 101.3 kB / 462 MB, free: 23.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.221e-05/0.2184, allocations: 350.8 kB / 462.3 MB, free: 23.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002943/0.2187, allocations: 144.6 kB / 462.4 MB, free: 23.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.219, allocations: 262.6 kB / 462.7 MB, free: 23.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005002/0.2195, allocations: 366.8 kB / 463.1 MB, free: 22.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2195, allocations: 1.031 kB / 463.1 MB, free: 22.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0007295/0.2203, allocations: 477.8 kB / 463.5 MB, free: 22.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.2203, allocations: 11.14 kB / 463.5 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2203, allocations: 3.844 kB / 463.5 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.2203, allocations: 5.5 kB / 463.5 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.2206, allocations: 69.67 kB / 463.6 MB, free: 22.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.2206, allocations: 10.36 kB / 463.6 MB, free: 22.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/0.2208, allocations: 60.02 kB / 463.7 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/0.2209, allocations: 20.97 kB / 463.7 MB, free: 22.61 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.0001497/0.221, allocations: 203.5 kB / 463.9 MB, free: 22.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.495e-05/0.2211, allocations: 39.69 kB / 463.9 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.522e-05/0.2212, allocations: 45.7 kB / 464 MB, free: 22.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.2212, allocations: 3.5 kB / 464 MB, free: 22.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2212, allocations: 2.344 kB / 464 MB, free: 22.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2212, allocations: 3 kB / 464 MB, free: 22.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/0.2225, allocations: 1.222 MB / 465.2 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.2225, allocations: 2.938 kB / 465.2 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001932/0.2227, allocations: 40.39 kB / 465.3 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.2227, allocations: 4.328 kB / 465.3 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.2227, allocations: 13.44 kB / 465.3 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.2227, allocations: 4.516 kB / 465.3 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.2227, allocations: 7.094 kB / 465.3 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006965/0.2234, allocations: 0.5631 MB / 465.8 MB, free: 21.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.336e-05/0.2235, allocations: 137.4 kB / 466 MB, free: 20.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.332e-05/0.2236, allocations: 15.56 kB / 466 MB, free: 20.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.2238, allocations: 21.66 kB / 466 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.131e-05/0.2238, allocations: 31.38 kB / 466 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.2239, allocations: 14.06 kB / 466.1 MB, free: 20.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001719/0.224, allocations: 216.3 kB / 466.3 MB, free: 20.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2241, allocations: 1.094 kB / 466.3 MB, free: 20.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003554/0.2244, allocations: 108.5 kB / 466.4 MB, free: 20.8 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.0008147/0.2252, allocations: 1.105 MB / 467.5 MB, free: 19.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006584/0.2259, allocations: 374.8 kB / 467.8 MB, free: 19.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2259, allocations: 1.844 kB / 467.9 MB, free: 19.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002731/0.2262, allocations: 157.4 kB / 468 MB, free: 19.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005485/0.2268, allocations: 111.2 kB / 468.1 MB, free: 19.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003752/0.2305, allocations: 3.656 MB / 471.8 MB, free: 17.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.2308, allocations: 0.8221 MB / 472.6 MB, free: 16.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000207/0.231, allocations: 60.22 kB / 472.6 MB, free: 16.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.2311, allocations: 162.3 kB / 472.8 MB, free: 16.37 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2312, allocations: 0 / 472.8 MB, free: 16.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05131/0.2825, allocations: 7.3 MB / 480.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.769/7.052, allocations: 1.344 kB / 480.1 MB, free: 14.49 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)