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.0009425/0.0009425, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001111/0.001111, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.9947/0.9947, allocations: 177.1 MB / 204.5 MB, free: 5.512 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.1216/0.1216, allocations: 24.14 MB / 285.2 MB, free: 5.117 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 1.673e-06/1.673e-06, allocations: 0 / 362.4 MB, free: 3.637 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.395e-05/1.562e-05, allocations: 2.312 kB / 362.4 MB, free: 3.633 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005881/0.005896, allocations: 6.504 MB / 368.9 MB, free: 13.1 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001306/0.007202, allocations: 1.005 MB / 369.9 MB, free: 12.09 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002803/0.007482, allocations: 27.75 kB / 370 MB, free: 12.07 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002289/0.007711, allocations: 107 kB / 370.1 MB, free: 11.96 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001668/0.007878, allocations: 87.11 kB / 370.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004332/0.008311, allocations: 231.3 kB / 370.4 MB, free: 11.65 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004499/0.008761, allocations: 0.5929 MB / 371 MB, free: 11.05 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002747/0.009036, allocations: 197.9 kB / 371.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003092/0.009345, allocations: 355.2 kB / 371.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.009548, allocations: 167.5 kB / 371.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.51e-05/0.009603, allocations: 52 kB / 371.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.93e-05/0.009683, allocations: 60 kB / 371.8 MB, free: 10.24 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.54e-05/0.009778, allocations: 139.5 kB / 371.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.009893, allocations: 159.6 kB / 372.1 MB, free: 9.949 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003402/0.01023, allocations: 374.4 kB / 372.4 MB, free: 9.582 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.01023, allocations: 0 / 372.4 MB, free: 9.582 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.01024, allocations: 4 kB / 372.4 MB, free: 9.578 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.01024, allocations: 0 / 372.4 MB, free: 9.578 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.0009781/0.01122, allocations: 0.8073 MB / 373.2 MB, free: 8.734 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.01125, allocations: 8.75 kB / 373.3 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002056/0.01145, allocations: 116.5 kB / 373.4 MB, free: 8.613 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000355/0.01181, allocations: 369.7 kB / 373.7 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/0.01185, allocations: 45.38 kB / 373.8 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.426e-05/0.0119, allocations: 60.38 kB / 373.8 MB, free: 8.129 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004164/0.01232, allocations: 462.1 kB / 374.3 MB, free: 7.621 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.01233, allocations: 0 / 374.3 MB, free: 7.621 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.01236, allocations: 24 kB / 374.3 MB, free: 7.598 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.01237, allocations: 16 kB / 374.3 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001594/0.01253, allocations: 134.8 kB / 374.5 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.01382, allocations: 1.945 MB / 376.4 MB, free: 5.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.01401, allocations: 200.7 kB / 376.6 MB, free: 5.184 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.438e-05/0.01409, allocations: 102.6 kB / 376.7 MB, free: 5.066 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.0141, allocations: 4 kB / 376.7 MB, free: 5.062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.01412, allocations: 45.33 kB / 376.7 MB, free: 5.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.393e-06/0.01413, allocations: 4 kB / 376.7 MB, free: 5.004 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0002974/0.01442, allocations: 214.8 kB / 377 MB, free: 4.789 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.01448, allocations: 162.2 kB / 377.1 MB, free: 4.594 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.01465, allocations: 345.9 kB / 377.5 MB, free: 4.238 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.01468, allocations: 37.7 kB / 377.5 MB, free: 4.195 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.01482, allocations: 323.5 kB / 377.8 MB, free: 3.871 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.333e-05/0.01487, allocations: 99.19 kB / 377.9 MB, free: 3.773 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.612e-05/0.01497, allocations: 107.9 kB / 378 MB, free: 3.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.01509, allocations: 0.5195 MB / 378.5 MB, free: 3.129 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.932e-05/0.01517, allocations: 57.25 kB / 378.6 MB, free: 3.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.01533, allocations: 290.6 kB / 378.9 MB, free: 2.703 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.01555, allocations: 311.8 kB / 379.2 MB, free: 2.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01555, allocations: 0 / 379.2 MB, free: 2.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0005591/0.01611, allocations: 345.5 kB / 379.5 MB, free: 1.977 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.01612, allocations: 8 kB / 379.5 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.01613, allocations: 7.938 kB / 379.5 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.01614, allocations: 8 kB / 379.5 MB, free: 1.953 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.01628, allocations: 64.41 kB / 379.6 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.01628, allocations: 15.94 kB / 379.6 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.01639, allocations: 43.67 kB / 379.7 MB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.01641, allocations: 23.98 kB / 379.7 MB, free: 1.809 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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,inventory.outflow.stopInflow,producing.cloud.massPort.stopInflow,installedBase.inflow.stopOutflow,inventory.inflow.stopInflow,producing.cloud.massPort.stopOutflow,installedBase.inflow.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,cloud1.massPort.stopInflow,cloud1.massPort.stopOutflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0001292/0.01654, allocations: 201.7 kB / 379.9 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.179e-05/0.01661, allocations: 47.77 kB / 379.9 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.302e-05/0.01666, allocations: 38.45 kB / 380 MB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.01666, allocations: 4 kB / 380 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.01666, allocations: 3.938 kB / 380 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.01667, allocations: 7.938 kB / 380 MB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007309/0.0174, allocations: 1.054 MB / 381 MB, free: 376 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.0174, allocations: 4 kB / 381 MB, free: 372 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.0175, allocations: 35.92 kB / 381.1 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.01751, allocations: 7.984 kB / 381.1 MB, free: 328 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.01752, allocations: 8 kB / 381.1 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.01753, allocations: 7.938 kB / 381.1 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01753, allocations: 256 / 381.1 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003052/0.01783, allocations: 454 kB / 381.5 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.702e-05/0.01789, allocations: 51.72 kB / 381.6 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.01792, allocations: 8 kB / 381.6 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.255e-05/0.01799, allocations: 8 kB / 381.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.01804, allocations: 35.89 kB / 381.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.01805, allocations: 4 kB / 381.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.613e-05/0.01814, allocations: 214.9 kB / 381.8 MB, free: 15.49 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01814, allocations: 0 / 381.8 MB, free: 15.49 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000256/0.01839, allocations: 111.6 kB / 382 MB, free: 15.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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.inflow.stopOutflow,producing.growing.portB.stopOutflow,inventory.outflow.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 (29): * Single equations (assignments): 29 * 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.353e-05/0.01848, allocations: 117.2 kB / 382.1 MB, free: 15.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002364/0.01871, allocations: 213.1 kB / 382.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01871, allocations: 4 kB / 382.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.893e-05/0.01879, allocations: 87.64 kB / 382.4 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.01913, allocations: 103.3 kB / 382.5 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007134/0.01984, allocations: 0.7539 MB / 383.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.663e-05/0.01991, allocations: 117 kB / 383.3 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.02003, allocations: 55.22 kB / 383.4 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.0202, allocations: 162.1 kB / 383.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.0202, allocations: 0 / 383.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of Templates: time 0.006701/0.0269, allocations: 4.523 MB / 388.1 MB, free: 9.277 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: 3.0176701061427593]