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: translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 107.1 kB / 16.41 MB, free: 6.477 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.001419/0.001419, allocations: 189.7 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.391/2.391, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.18/0.18, allocations: 31.18 MB / 322.4 MB, free: 168 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 67.89 kB / 447.6 MB, free: 1.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1171, allocations: 56.36 MB / 0.4921 GB, free: 9.215 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.009738/0.1269, allocations: 6.789 MB / 0.4987 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002571/0.1295, allocations: 1.009 MB / 0.4997 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005646/0.1301, allocations: 19.88 kB / 0.4998 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003807/0.1305, allocations: 107 kB / 0.4999 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002922/0.1309, allocations: 79.3 kB / 0.4999 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007762/0.1317, allocations: 227.5 kB / 0.5001 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007867/0.1325, allocations: 0.5619 MB / 0.5007 GB, free: 400 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005609/0.133, allocations: 317.3 kB / 0.501 GB, free: 76 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2337/0.3668, allocations: 222.2 kB / 0.5012 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004568/0.3673, allocations: 240.6 kB / 0.5014 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.3674, allocations: 56.91 kB / 0.5015 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001834/0.3676, allocations: 63.31 kB / 0.5016 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001803/0.3678, allocations: 133.9 kB / 0.5017 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002955/0.3681, allocations: 267.2 kB / 0.5019 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009415/0.3691, allocations: 0.5717 MB / 0.5025 GB, free: 6.215 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3691, allocations: 0 / 0.5025 GB, free: 6.215 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3691, allocations: 0 / 0.5025 GB, free: 6.215 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.3691, allocations: 1.188 kB / 0.5025 GB, free: 6.215 MB / 382.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.001611/0.3707, allocations: 0.8053 MB / 0.5033 GB, free: 5.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.743e-05/0.3708, allocations: 10.5 kB / 0.5033 GB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004106/0.3712, allocations: 75.89 kB / 0.5034 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006701/0.3719, allocations: 405.1 kB / 0.5038 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.019e-05/0.372, allocations: 46.67 kB / 0.5038 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.3721, allocations: 61.36 kB / 0.5039 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009775/0.3731, allocations: 0.4995 MB / 0.5043 GB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.3731, allocations: 0.9062 kB / 0.5043 GB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.568e-05/0.3731, allocations: 20.28 kB / 0.5044 GB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.3732, allocations: 12.75 kB / 0.5044 GB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006856/0.3739, allocations: 310.7 kB / 0.5047 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002646/0.3765, allocations: 1.863 MB / 0.5065 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007378/0.3773, allocations: 300.9 kB / 0.5068 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003206/0.3776, allocations: 177.8 kB / 0.5069 GB, free: 4.172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.3777, allocations: 5.953 kB / 0.507 GB, free: 4.172 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.3777, allocations: 50.23 kB / 0.507 GB, free: 4.125 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.995e-06/0.3777, allocations: 0 / 0.507 GB, free: 4.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001059/0.3788, allocations: 389.3 kB / 0.5074 GB, free: 4.066 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.089e-05/0.3788, allocations: 161.6 kB / 0.5075 GB, free: 3.879 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004284/0.3793, allocations: 320.5 kB / 0.5078 GB, free: 3.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.445e-05/0.3793, allocations: 44.61 kB / 0.5079 GB, free: 3.723 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.3795, allocations: 262.1 kB / 0.5081 GB, free: 3.566 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.909e-05/0.3796, allocations: 101.6 kB / 0.5082 GB, free: 3.504 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.3798, allocations: 103 kB / 0.5083 GB, free: 3.484 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3799, allocations: 351.3 kB / 0.5087 GB, free: 3.172 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003661/0.3803, allocations: 143 kB / 0.5088 GB, free: 3.172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004211/0.3807, allocations: 259.7 kB / 0.509 GB, free: 3.047 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006365/0.3814, allocations: 370.1 kB / 0.5094 GB, free: 2.926 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.3814, allocations: 1.188 kB / 0.5094 GB, free: 2.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009755/0.3824, allocations: 477.3 kB / 0.5098 GB, free: 2.859 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.3824, allocations: 6.219 kB / 0.5099 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.3824, allocations: 8.938 kB / 0.5099 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.486e-05/0.3825, allocations: 6.875 kB / 0.5099 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003017/0.3828, allocations: 68.31 kB / 0.5099 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.3828, allocations: 12.8 kB / 0.5099 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/0.3831, allocations: 63.69 kB / 0.51 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.3831, allocations: 20.12 kB / 0.51 GB, free: 2.824 MB / 382.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.0002249/0.3834, allocations: 196.1 kB / 0.5102 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.3835, allocations: 33.44 kB / 0.5102 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.431e-05/0.3836, allocations: 44.06 kB / 0.5103 GB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.3836, allocations: 4.828 kB / 0.5103 GB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.3836, allocations: 5.188 kB / 0.5103 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.3836, allocations: 4.109 kB / 0.5103 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001741/0.3854, allocations: 1.218 MB / 0.5115 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.3854, allocations: 1.906 kB / 0.5115 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.3856, allocations: 47.92 kB / 0.5115 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.747e-06/0.3857, allocations: 4.375 kB / 0.5115 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.07e-05/0.3857, allocations: 10.53 kB / 0.5116 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.095e-06/0.3857, allocations: 5.141 kB / 0.5116 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/0.3857, allocations: 11.88 kB / 0.5116 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009141/0.3866, allocations: 0.5663 MB / 0.5121 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.3868, allocations: 133.8 kB / 0.5122 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.653e-05/0.3869, allocations: 12.08 kB / 0.5123 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.3871, allocations: 23.73 kB / 0.5123 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.3872, allocations: 39.36 kB / 0.5123 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.497e-05/0.3873, allocations: 9.375 kB / 0.5123 GB, free: 1.645 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000259/0.3875, allocations: 213.3 kB / 0.5125 GB, free: 1.566 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3875, allocations: 1.031 kB / 0.5125 GB, free: 1.566 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005562/0.3881, allocations: 109.5 kB / 0.5126 GB, free: 1.543 MB / 382.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.0001672/0.3883, allocations: 122.5 kB / 0.5128 GB, free: 1.453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008158/0.3891, allocations: 348.9 kB / 0.5131 GB, free: 1.449 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.3891, allocations: 3.938 kB / 0.5131 GB, free: 1.445 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003397/0.3895, allocations: 155.6 kB / 0.5132 GB, free: 1.441 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006535/0.3901, allocations: 89.91 kB / 0.5133 GB, free: 1.441 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.3918, allocations: 0.8523 MB / 0.5142 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000594/0.3924, allocations: 0.8262 MB / 0.515 GB, free: 16.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002052/0.3927, allocations: 41.48 kB / 0.515 GB, free: 16.24 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3927, allocations: 1.062 kB / 0.515 GB, free: 16.24 MB / 398.1 MB Notification: Performance of Templates: time 0.01686/0.4095, allocations: 5.278 MB / 0.5202 GB, free: 15.73 MB / 398.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile (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 & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)