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.00117/0.00117, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001275/0.001275, allocations: 173 kB / 23.49 MB, free: 1.062 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.048/1.048, allocations: 177.1 MB / 203.8 MB, free: 5.633 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.1137/0.1137, allocations: 24.14 MB / 284.4 MB, free: 5.324 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.443e-06/1.443e-06, allocations: 0 / 361.2 MB, free: 4.355 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.554e-05/2.698e-05, allocations: 2.312 kB / 361.2 MB, free: 4.352 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005033/0.00506, allocations: 5.264 MB / 366.5 MB, free: 15.06 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.006165, allocations: 0.6193 MB / 367.1 MB, free: 14.44 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002451/0.006411, allocations: 15.88 kB / 367.1 MB, free: 14.42 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.006659, allocations: 75.27 kB / 367.2 MB, free: 14.35 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.006852, allocations: 79.28 kB / 367.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005307/0.007383, allocations: 187.5 kB / 367.4 MB, free: 14.09 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004228/0.007806, allocations: 474.9 kB / 367.9 MB, free: 13.62 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.008046, allocations: 154.8 kB / 368 MB, free: 13.47 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005512/0.008598, allocations: 287.4 kB / 368.3 MB, free: 13.19 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.008787, allocations: 147.5 kB / 368.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.836e-05/0.008845, allocations: 44 kB / 368.5 MB, free: 13 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.47e-05/0.00893, allocations: 51.94 kB / 368.6 MB, free: 12.95 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.126e-05/0.009021, allocations: 115.6 kB / 368.7 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.00913, allocations: 143.6 kB / 368.8 MB, free: 12.7 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004019/0.009532, allocations: 314.8 kB / 369.1 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.009536, allocations: 0 / 369.1 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.009538, allocations: 0 / 369.1 MB, free: 12.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.009544, allocations: 4 kB / 369.1 MB, free: 12.39 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.0007997/0.01034, allocations: 0.7104 MB / 369.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.01039, allocations: 8.75 kB / 369.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002593/0.01065, allocations: 100.6 kB / 369.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.01099, allocations: 283.6 kB / 370.2 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/0.01103, allocations: 37.38 kB / 370.3 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.309e-05/0.01108, allocations: 44.38 kB / 370.3 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004693/0.01155, allocations: 430.3 kB / 370.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.01156, allocations: 0 / 370.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.01159, allocations: 16 kB / 370.7 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.0116, allocations: 12 kB / 370.8 MB, free: 10.65 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.0118, allocations: 137.8 kB / 370.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.01316, allocations: 1.751 MB / 372.6 MB, free: 8.691 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.01355, allocations: 236.2 kB / 372.9 MB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.01366, allocations: 99.8 kB / 373 MB, free: 8.297 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.01368, allocations: 8 kB / 373 MB, free: 8.289 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.01371, allocations: 49.33 kB / 373 MB, free: 8.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 2.976e-06/0.01371, allocations: 3.938 kB / 373 MB, free: 8.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0003779/0.01409, allocations: 221.3 kB / 373.2 MB, free: 8.004 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.636e-05/0.01416, allocations: 166.5 kB / 373.4 MB, free: 7.805 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/0.01438, allocations: 304.2 kB / 373.7 MB, free: 7.492 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.193e-05/0.01441, allocations: 37.7 kB / 373.7 MB, free: 7.449 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.01454, allocations: 263.3 kB / 374 MB, free: 7.188 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.588e-05/0.0146, allocations: 91.27 kB / 374.1 MB, free: 7.098 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.0147, allocations: 103.8 kB / 374.2 MB, free: 6.988 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.01484, allocations: 0.5157 MB / 374.7 MB, free: 6.461 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.01498, allocations: 72.94 kB / 374.8 MB, free: 6.387 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.01517, allocations: 237.5 kB / 375 MB, free: 6.094 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004652/0.01563, allocations: 274.4 kB / 375.3 MB, free: 5.766 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.01564, allocations: 4 kB / 375.3 MB, free: 5.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0003925/0.01603, allocations: 337.7 kB / 375.6 MB, free: 5.426 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.01605, allocations: 9.391 kB / 375.6 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.01606, allocations: 4 kB / 375.6 MB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.01608, allocations: 4.406 kB / 375.6 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.01622, allocations: 67.84 kB / 375.7 MB, free: 5.344 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.01623, allocations: 7.938 kB / 375.7 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.01635, allocations: 51.66 kB / 375.7 MB, free: 5.285 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.01637, allocations: 16 kB / 375.8 MB, free: 5.27 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.0001569/0.01653, allocations: 201.7 kB / 376 MB, free: 5.062 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.708e-05/0.0166, allocations: 43.73 kB / 376 MB, free: 5.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.37e-05/0.01666, allocations: 34.28 kB / 376 MB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.01666, allocations: 4 kB / 376 MB, free: 4.984 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.01667, allocations: 4 kB / 376 MB, free: 4.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.01668, allocations: 3.984 kB / 376 MB, free: 4.977 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.01773, allocations: 1.153 MB / 377.2 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.01773, allocations: 4 kB / 377.2 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.01785, allocations: 32.33 kB / 377.2 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.01786, allocations: 12 kB / 377.2 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.01789, allocations: 12 kB / 377.3 MB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.685e-06/0.0179, allocations: 11.92 kB / 377.3 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.0179, allocations: 4 kB / 377.3 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004896/0.01839, allocations: 0.499 MB / 377.8 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.511e-05/0.01848, allocations: 55.72 kB / 377.8 MB, free: 3.016 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.534e-05/0.01851, allocations: 8 kB / 377.8 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.01861, allocations: 15.98 kB / 377.9 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.01872, allocations: 39.83 kB / 377.9 MB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.01873, allocations: 8 kB / 377.9 MB, free: 2.945 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001249/0.01886, allocations: 197.1 kB / 378.1 MB, free: 2.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01886, allocations: 0 / 378.1 MB, free: 2.75 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003045/0.01916, allocations: 95.78 kB / 378.2 MB, free: 2.656 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 0.0001194/0.01928, allocations: 109.2 kB / 378.3 MB, free: 2.543 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003302/0.01961, allocations: 228.6 kB / 378.5 MB, free: 2.316 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.01961, allocations: 0 / 378.5 MB, free: 2.316 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.01972, allocations: 90.84 kB / 378.6 MB, free: 2.227 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004083/0.02012, allocations: 96.73 kB / 378.7 MB, free: 2.141 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.02117, allocations: 0.6976 MB / 379.4 MB, free: 1.355 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.657e-05/0.02125, allocations: 108.7 kB / 379.5 MB, free: 1.23 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.02137, allocations: 47.25 kB / 379.5 MB, free: 1.184 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.181e-05/0.02145, allocations: 36.5 kB / 379.6 MB, free: 1.148 MB / 346.7 MB Notification: Performance of SimCode: time 1.383e-06/0.02145, allocations: 0 / 379.6 MB, free: 1.148 MB / 346.7 MB Notification: Performance of Templates: time 0.006563/0.02801, allocations: 3.911 MB / 383.5 MB, free: 13.32 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=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.078158783959225]