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.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.0007909/0.0007909, allocations: 96.7 kB / 20.21 MB, free: 4.219 MB / 18.57 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.000851/0.000851, allocations: 157.3 kB / 23.51 MB, free: 0.9102 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 0.8685/0.8685, allocations: 177.2 MB / 203.9 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] 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.09908/0.09908, allocations: 24.13 MB / 284.5 MB, free: 5.301 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.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 361.2 MB, free: 4.406 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.341e-05/1.457e-05, allocations: 2.312 kB / 361.2 MB, free: 4.402 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004091/0.004106, allocations: 5.09 MB / 366.3 MB, free: 15.29 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000707/0.004813, allocations: 0.6034 MB / 366.9 MB, free: 14.68 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.004975, allocations: 15.88 kB / 366.9 MB, free: 14.66 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001942/0.00517, allocations: 79.27 kB / 367 MB, free: 14.59 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.005316, allocations: 75.31 kB / 367.1 MB, free: 14.51 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003999/0.005716, allocations: 191.4 kB / 367.3 MB, free: 14.32 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.006036, allocations: 470.9 kB / 367.7 MB, free: 13.86 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002009/0.006237, allocations: 154.8 kB / 367.9 MB, free: 13.71 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002004/0.006437, allocations: 291.4 kB / 368.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.00659, allocations: 135.6 kB / 368.3 MB, free: 13.3 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.194e-05/0.006632, allocations: 48 kB / 368.3 MB, free: 13.25 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.664e-05/0.006698, allocations: 51.98 kB / 368.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-05/0.006773, allocations: 115.6 kB / 368.5 MB, free: 13.09 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.523e-05/0.006868, allocations: 147.6 kB / 368.6 MB, free: 12.94 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003329/0.007201, allocations: 470.4 kB / 369.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.007203, allocations: 0 / 369.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.007204, allocations: 0 / 369.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.007208, allocations: 0 / 369.1 MB, free: 12.48 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0007115/0.00792, allocations: 0.6186 MB / 369.7 MB, free: 11.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.007952, allocations: 12.75 kB / 369.7 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002074/0.008159, allocations: 104.6 kB / 369.8 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002892/0.008448, allocations: 276.8 kB / 370.1 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.699e-05/0.008475, allocations: 37.38 kB / 370.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.288e-05/0.008528, allocations: 48.38 kB / 370.2 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004515/0.00898, allocations: 482.8 kB / 370.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.00899, allocations: 0 / 370.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.322e-05/0.009013, allocations: 16 kB / 370.7 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.009022, allocations: 12 kB / 370.7 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003049/0.009327, allocations: 247.7 kB / 370.9 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.01072, allocations: 1.409 MB / 372.3 MB, free: 9.086 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003414/0.01106, allocations: 245.7 kB / 372.6 MB, free: 8.812 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.01122, allocations: 151.8 kB / 372.7 MB, free: 8.652 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.01123, allocations: 4 kB / 372.7 MB, free: 8.648 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.01125, allocations: 50.42 kB / 372.8 MB, free: 8.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 1.323e-06/0.01126, allocations: 0 / 372.8 MB, free: 8.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.000502/0.01176, allocations: 342.6 kB / 373.1 MB, free: 8.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.01182, allocations: 170.5 kB / 373.3 MB, free: 8.047 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.01199, allocations: 253.7 kB / 373.5 MB, free: 7.793 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.01202, allocations: 45.7 kB / 373.6 MB, free: 7.742 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.948e-05/0.01212, allocations: 212.6 kB / 373.8 MB, free: 7.531 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.198e-05/0.01217, allocations: 95.25 kB / 373.9 MB, free: 7.438 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.997e-05/0.01226, allocations: 102.1 kB / 374 MB, free: 7.332 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.509e-05/0.01234, allocations: 342.8 kB / 374.3 MB, free: 6.988 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.01252, allocations: 132.9 kB / 374.4 MB, free: 6.855 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.01275, allocations: 275 kB / 374.7 MB, free: 6.539 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003272/0.01308, allocations: 346.7 kB / 375 MB, free: 6.156 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.01308, allocations: 0 / 375 MB, free: 6.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004686/0.01355, allocations: 470 kB / 375.5 MB, free: 5.691 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.01356, allocations: 8 kB / 375.5 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.01357, allocations: 4 kB / 375.5 MB, free: 5.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.01358, allocations: 4 kB / 375.5 MB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.01371, allocations: 63.83 kB / 375.6 MB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.01372, allocations: 8 kB / 375.6 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.01383, allocations: 51.7 kB / 375.6 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.01385, allocations: 27.88 kB / 375.7 MB, free: 5.527 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 (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.0001181/0.01397, allocations: 187 kB / 375.9 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6e-05/0.01403, allocations: 39.81 kB / 375.9 MB, free: 5.297 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.456e-05/0.01407, allocations: 34.27 kB / 375.9 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.01407, allocations: 4 kB / 375.9 MB, free: 5.262 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.01407, allocations: 4 kB / 375.9 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.01408, allocations: 7.922 kB / 375.9 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008903/0.01497, allocations: 1.064 MB / 377 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.01497, allocations: 0 / 377 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.01508, allocations: 39.92 kB / 377 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.01508, allocations: 4 kB / 377 MB, free: 4.059 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.0151, allocations: 19.92 kB / 377.1 MB, free: 4.039 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.0151, allocations: 8.344 kB / 377.1 MB, free: 4.031 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.01511, allocations: 8 kB / 377.1 MB, free: 4.023 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004741/0.01558, allocations: 0.537 MB / 377.6 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.478e-05/0.01565, allocations: 51.83 kB / 377.7 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.01567, allocations: 12 kB / 377.7 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.851e-05/0.01577, allocations: 19.94 kB / 377.7 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.847e-05/0.01584, allocations: 47.83 kB / 377.7 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.01585, allocations: 8 kB / 377.8 MB, free: 3.293 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.894e-05/0.01595, allocations: 165.2 kB / 377.9 MB, free: 3.129 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01595, allocations: 0 / 377.9 MB, free: 3.129 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002444/0.01619, allocations: 91.78 kB / 378 MB, free: 3.039 MB / 346.7 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 8.018e-05/0.01627, allocations: 125.1 kB / 378.1 MB, free: 2.91 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000399/0.01667, allocations: 304 kB / 378.4 MB, free: 2.613 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.01667, allocations: 0 / 378.4 MB, free: 2.613 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001593/0.01683, allocations: 137.2 kB / 378.6 MB, free: 2.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003451/0.01718, allocations: 103.5 kB / 378.7 MB, free: 2.387 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.01819, allocations: 0.7146 MB / 379.4 MB, free: 1.602 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.01831, allocations: 186.8 kB / 379.6 MB, free: 1.398 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.01843, allocations: 59.23 kB / 379.6 MB, free: 1.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.371e-05/0.01849, allocations: 32.5 kB / 379.6 MB, free: 1.309 MB / 346.7 MB Notification: Performance of SimCode: time 6.92e-07/0.0185, allocations: 0 / 379.6 MB, free: 1.309 MB / 346.7 MB Notification: Performance of Templates: time 0.005191/0.02369, allocations: 3.924 MB / 383.6 MB, free: 13.48 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (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 & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 2.612187137827277]