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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001837/0.001837, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001978/0.001978, allocations: 173.2 kB / 22.76 MB, free: 1.664 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.632/1.632, allocations: 177.1 MB / 203.1 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1895/0.1895, allocations: 24.12 MB / 283.7 MB, free: 5.332 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 360.4 MB, free: 4.391 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.764e-05/3.974e-05, allocations: 10.14 kB / 360.5 MB, free: 4.383 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.01326/0.0133, allocations: 6.501 MB / 367 MB, free: 13.85 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003433/0.01673, allocations: 0.9931 MB / 368 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00075/0.01748, allocations: 35.75 kB / 368 MB, free: 12.82 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005075/0.01799, allocations: 103 kB / 368.1 MB, free: 12.72 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004207/0.01841, allocations: 87.16 kB / 368.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.01943, allocations: 235.3 kB / 368.4 MB, free: 12.4 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001066/0.0205, allocations: 0.5814 MB / 369 MB, free: 11.82 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005654/0.02107, allocations: 205.8 kB / 369.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006872/0.02175, allocations: 343.3 kB / 369.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004582/0.02221, allocations: 175.4 kB / 369.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001406/0.02235, allocations: 60 kB / 369.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001688/0.02252, allocations: 63.98 kB / 369.8 MB, free: 10.99 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002084/0.02273, allocations: 139.5 kB / 369.9 MB, free: 10.86 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003083/0.02304, allocations: 167.6 kB / 370.1 MB, free: 10.69 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.02419, allocations: 0.5918 MB / 370.7 MB, free: 10.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.0242, allocations: 0 / 370.7 MB, free: 10.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.0242, allocations: 0 / 370.7 MB, free: 10.1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.02421, allocations: 0 / 370.7 MB, free: 10.1 MB / 346.7 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.00213/0.02634, allocations: 0.8543 MB / 371.6 MB, free: 9.207 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.02639, allocations: 8.75 kB / 371.6 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005998/0.02699, allocations: 116.5 kB / 371.7 MB, free: 9.086 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009708/0.02796, allocations: 352.1 kB / 372 MB, free: 8.719 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.793e-05/0.02806, allocations: 49.36 kB / 372.1 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/0.0282, allocations: 56.38 kB / 372.1 MB, free: 8.613 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.02971, allocations: 0.5718 MB / 372.7 MB, free: 7.992 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/0.02974, allocations: 4 kB / 372.7 MB, free: 7.988 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-05/0.02981, allocations: 20 kB / 372.7 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.02984, allocations: 12 kB / 372.7 MB, free: 7.957 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009689/0.0308, allocations: 279.8 kB / 373 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004234/0.03504, allocations: 2.06 MB / 375.1 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.03608, allocations: 313.1 kB / 375.4 MB, free: 5.191 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004937/0.03657, allocations: 159.2 kB / 375.5 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.99e-05/0.03661, allocations: 8.234 kB / 375.5 MB, free: 5.012 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.984e-05/0.03667, allocations: 45.56 kB / 375.6 MB, free: 4.957 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.565e-06/0.03667, allocations: 0 / 375.6 MB, free: 4.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.001397/0.03807, allocations: 347.7 kB / 375.9 MB, free: 4.613 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001769/0.03825, allocations: 166.1 kB / 376.1 MB, free: 4.414 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007327/0.03898, allocations: 398.2 kB / 376.5 MB, free: 4.004 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.494e-05/0.03906, allocations: 49.69 kB / 376.5 MB, free: 3.949 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004121/0.03948, allocations: 323.7 kB / 376.8 MB, free: 3.625 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/0.03966, allocations: 107.2 kB / 376.9 MB, free: 3.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003476/0.04001, allocations: 143.9 kB / 377.1 MB, free: 3.371 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004878/0.0405, allocations: 0.5391 MB / 377.6 MB, free: 2.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005041/0.041, allocations: 117.2 kB / 377.7 MB, free: 2.707 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007346/0.04174, allocations: 316.3 kB / 378 MB, free: 2.336 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009897/0.04273, allocations: 383.5 kB / 378.4 MB, free: 1.902 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.04274, allocations: 4 kB / 378.4 MB, free: 1.898 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001367/0.0441, allocations: 449 kB / 378.9 MB, free: 1.453 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.04413, allocations: 8.406 kB / 378.9 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.338e-05/0.04416, allocations: 12 kB / 378.9 MB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.223e-05/0.04419, allocations: 4 kB / 378.9 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000408/0.0446, allocations: 63.84 kB / 378.9 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.795e-05/0.04463, allocations: 15.88 kB / 379 MB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003825/0.04501, allocations: 51.66 kB / 379 MB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.069e-05/0.04507, allocations: 19.98 kB / 379 MB, free: 1.281 MB / 346.7 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.0004029/0.04547, allocations: 241.7 kB / 379.3 MB, free: 1.035 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002191/0.04569, allocations: 39.81 kB / 379.3 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001294/0.04582, allocations: 43.08 kB / 379.3 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.04583, allocations: 4 kB / 379.4 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.04584, allocations: 3.938 kB / 379.4 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.04585, allocations: 7.922 kB / 379.4 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002922/0.04877, allocations: 1.33 MB / 380.7 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.04878, allocations: 4.281 kB / 380.7 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000321/0.0491, allocations: 47.91 kB / 380.7 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.218e-05/0.04912, allocations: 4 kB / 380.7 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.247e-05/0.04916, allocations: 8 kB / 380.8 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/0.04917, allocations: 4 kB / 380.8 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/0.04917, allocations: 7.938 kB / 380.8 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.05057, allocations: 0.591 MB / 381.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001891/0.05076, allocations: 59.66 kB / 381.4 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.385e-05/0.05084, allocations: 15.98 kB / 381.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002856/0.05112, allocations: 20.02 kB / 381.5 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.05127, allocations: 39.88 kB / 381.5 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-05/0.05131, allocations: 16 kB / 381.5 MB, free: 14.65 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003905/0.0517, allocations: 243 kB / 381.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0517, allocations: 0 / 381.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007802/0.05248, allocations: 111.7 kB / 381.9 MB, free: 14.3 MB / 362.7 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.0002065/0.05268, allocations: 121.1 kB / 382 MB, free: 14.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.05375, allocations: 339.6 kB / 382.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.05376, allocations: 4 kB / 382.3 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004247/0.05418, allocations: 140.8 kB / 382.4 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.05519, allocations: 105.7 kB / 382.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/0.05734, allocations: 0.8113 MB / 383.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.05772, allocations: 231.9 kB / 383.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000313/0.05803, allocations: 51.25 kB / 383.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.05818, allocations: 32.5 kB / 383.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of SimCode: time 8.32e-07/0.05819, allocations: 0 / 383.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of Templates: time 0.01551/0.0737, allocations: 4.484 MB / 388.2 MB, free: 8.008 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (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 & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.023866006056778]