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.001271/0.001271, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 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.001827/0.001827, allocations: 215 kB / 23.04 MB, free: 5.074 MB / 14.72 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.512/1.512, allocations: 230.6 MB / 256.8 MB, free: 8.062 MB / 206.1 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.1829/0.1829, allocations: 31.56 MB / 344.8 MB, free: 4.004 MB / 270.1 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: "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002755/0.002755, allocations: 71.88 kB / 481.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3496, allocations: 60.69 MB / 0.5296 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008455/0.3581, allocations: 6.937 MB / 0.5364 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002489/0.3606, allocations: 1.019 MB / 0.5374 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006603/0.3612, allocations: 29.56 kB / 0.5374 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003963/0.3616, allocations: 104.6 kB / 0.5375 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002776/0.3619, allocations: 76.05 kB / 0.5376 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007258/0.3626, allocations: 242.8 kB / 0.5378 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006433/0.3633, allocations: 0.5653 MB / 0.5384 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003735/0.3636, allocations: 212.7 kB / 0.5386 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002851/0.3639, allocations: 236.3 kB / 0.5388 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002842/0.3642, allocations: 248.3 kB / 0.539 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.948e-05/0.3643, allocations: 57.53 kB / 0.5391 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.3644, allocations: 62.83 kB / 0.5391 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.3645, allocations: 133 kB / 0.5393 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002248/0.3648, allocations: 257.2 kB / 0.5395 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007038/0.3655, allocations: 0.5774 MB / 0.5401 GB, free: 376 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3655, allocations: 0 / 0.5401 GB, free: 376 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3655, allocations: 0 / 0.5401 GB, free: 376 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.3655, allocations: 5.188 kB / 0.5401 GB, free: 372 kB / 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.001344/0.3668, allocations: 0.7221 MB / 0.5408 GB, free: 15.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3669, allocations: 10.91 kB / 0.5408 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.015e-05/0.3669, allocations: 13.84 kB / 0.5408 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.367, allocations: 94.02 kB / 0.5409 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003409/0.3674, allocations: 83.8 kB / 0.541 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006142/0.368, allocations: 337.8 kB / 0.5413 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.391e-05/0.368, allocations: 51.84 kB / 0.5413 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.628e-05/0.3681, allocations: 57.97 kB / 0.5414 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009247/0.369, allocations: 0.4931 MB / 0.5419 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.3691, allocations: 4 kB / 0.5419 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.022e-05/0.3691, allocations: 21.38 kB / 0.5419 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.3691, allocations: 13.22 kB / 0.5419 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007516/0.3699, allocations: 304.4 kB / 0.5422 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002584/0.3725, allocations: 1.817 MB / 0.544 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007151/0.3732, allocations: 291.7 kB / 0.5443 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000326/0.3735, allocations: 178 kB / 0.5444 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.3735, allocations: 8.297 kB / 0.5444 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.438e-05/0.3736, allocations: 41.55 kB / 0.5445 GB, free: 12.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.054e-06/0.3736, allocations: 0 / 0.5445 GB, free: 12.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.000948/0.3745, allocations: 392.9 kB / 0.5449 GB, free: 12.67 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.3746, allocations: 165.9 kB / 0.545 GB, free: 12.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003727/0.375, allocations: 319.5 kB / 0.5453 GB, free: 12.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.024e-05/0.375, allocations: 39.61 kB / 0.5454 GB, free: 12.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.3753, allocations: 264.8 kB / 0.5456 GB, free: 11.99 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.629e-05/0.3753, allocations: 96.3 kB / 0.5457 GB, free: 11.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.3755, allocations: 107 kB / 0.5458 GB, free: 11.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.3757, allocations: 347.7 kB / 0.5461 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003538/0.376, allocations: 147.8 kB / 0.5463 GB, free: 11.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004421/0.3765, allocations: 251.8 kB / 0.5465 GB, free: 11.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006775/0.3771, allocations: 367.6 kB / 0.5469 GB, free: 10.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.3772, allocations: 1.344 kB / 0.5469 GB, free: 10.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009494/0.3781, allocations: 483.9 kB / 0.5473 GB, free: 10.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.3781, allocations: 6.719 kB / 0.5473 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3781, allocations: 3.344 kB / 0.5473 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.3782, allocations: 13.88 kB / 0.5473 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.3784, allocations: 70.97 kB / 0.5474 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.8e-05/0.3785, allocations: 13.42 kB / 0.5474 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003152/0.3788, allocations: 57.58 kB / 0.5475 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.3788, allocations: 23.42 kB / 0.5475 GB, free: 10.64 MB / 398.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.0002714/0.3791, allocations: 188.3 kB / 0.5477 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.3792, allocations: 44.48 kB / 0.5477 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.501e-05/0.3793, allocations: 44.95 kB / 0.5478 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.3793, allocations: 3.969 kB / 0.5478 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.3793, allocations: 1.469 kB / 0.5478 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.3793, allocations: 7.969 kB / 0.5478 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.3812, allocations: 1.188 MB / 0.5489 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3812, allocations: 2.75 kB / 0.5489 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000239/0.3814, allocations: 44.78 kB / 0.549 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3815, allocations: 5.062 kB / 0.549 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.3815, allocations: 21.62 kB / 0.549 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.3815, allocations: 7.062 kB / 0.549 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3815, allocations: 3.156 kB / 0.549 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000921/0.3824, allocations: 0.5512 MB / 0.5496 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.3826, allocations: 65 kB / 0.5496 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.217e-05/0.3826, allocations: 12.72 kB / 0.5496 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.3828, allocations: 21.92 kB / 0.5497 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.413e-05/0.3829, allocations: 31.77 kB / 0.5497 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.3829, allocations: 18.72 kB / 0.5497 GB, free: 8.879 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002331/0.3832, allocations: 212.7 kB / 0.5499 GB, free: 8.738 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3832, allocations: 3.938 kB / 0.5499 GB, free: 8.734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000483/0.3836, allocations: 111.1 kB / 0.55 GB, free: 8.699 MB / 398.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.001268/0.3849, allocations: 1.12 MB / 0.5511 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007671/0.3857, allocations: 333.7 kB / 0.5514 GB, free: 7.598 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3857, allocations: 1.562 kB / 0.5514 GB, free: 7.598 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003269/0.386, allocations: 152.1 kB / 0.5516 GB, free: 7.531 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006472/0.3866, allocations: 102.4 kB / 0.5517 GB, free: 7.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005509/0.3922, allocations: 3.648 MB / 0.5552 GB, free: 4.754 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005553/0.3927, allocations: 0.8273 MB / 0.556 GB, free: 3.992 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002752/0.393, allocations: 60.61 kB / 0.5561 GB, free: 3.961 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002858/0.3933, allocations: 153.3 kB / 0.5562 GB, free: 3.836 MB / 398.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3933, allocations: 0 / 0.5562 GB, free: 3.836 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03322/0.4265, allocations: 7.792 MB / 0.5639 GB, free: 13.49 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.22, allocations: 5.562 kB / 0.5639 GB, free: 13.49 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.103009217069484] Failed to read output from testmodel.py, exit status != 0: 12.383497409056872 12.398213672 12.0293453 Calling exit ...