Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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.001252/0.001252, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001471/0.001471, allocations: 216.8 kB / 23.04 MB, free: 5.078 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.513/1.513, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.1789/0.1789, allocations: 31.54 MB / 344.8 MB, free: 3.977 MB / 270.1 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/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_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_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.00201/0.00201, allocations: 60.09 kB / 481.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3136, allocations: 60.71 MB / 0.5296 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006929/0.3205, allocations: 6.937 MB / 0.5364 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.3223, allocations: 0.9997 MB / 0.5373 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003827/0.3227, allocations: 29.81 kB / 0.5374 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000298/0.323, allocations: 115 kB / 0.5375 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002082/0.3232, allocations: 76.67 kB / 0.5376 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005913/0.3238, allocations: 243.6 kB / 0.5378 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005582/0.3243, allocations: 0.5637 MB / 0.5383 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003519/0.3247, allocations: 216.7 kB / 0.5386 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002634/0.3249, allocations: 236.5 kB / 0.5388 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002705/0.3252, allocations: 236.8 kB / 0.539 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.568e-05/0.3253, allocations: 57.16 kB / 0.5391 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.3254, allocations: 66.97 kB / 0.5391 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.3255, allocations: 133.6 kB / 0.5392 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.3257, allocations: 260.8 kB / 0.5395 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006391/0.3263, allocations: 0.5817 MB / 0.5401 GB, free: 216 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3263, allocations: 0 / 0.5401 GB, free: 216 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3263, allocations: 3.938 kB / 0.5401 GB, free: 212 kB / 382.1 MB Notification: Performance of Transformations before backend: time 9.918e-06/0.3263, allocations: 1.156 kB / 0.5401 GB, free: 212 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.001273/0.3276, allocations: 0.7151 MB / 0.5408 GB, free: 15.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.3276, allocations: 10.25 kB / 0.5408 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.879e-05/0.3277, allocations: 25.02 kB / 0.5408 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000105/0.3278, allocations: 94.03 kB / 0.5409 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003283/0.3281, allocations: 87.52 kB / 0.541 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005673/0.3287, allocations: 338 kB / 0.5413 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.988e-05/0.3287, allocations: 48.5 kB / 0.5413 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.331e-05/0.3288, allocations: 53.16 kB / 0.5414 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000849/0.3296, allocations: 0.4971 MB / 0.5419 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.3297, allocations: 5.359 kB / 0.5419 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.435e-05/0.3297, allocations: 20.12 kB / 0.5419 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.3297, allocations: 12.38 kB / 0.5419 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006829/0.3304, allocations: 305.7 kB / 0.5422 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00268/0.3331, allocations: 1.812 MB / 0.544 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006805/0.3338, allocations: 300.8 kB / 0.5443 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003468/0.3341, allocations: 177.1 kB / 0.5444 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.3341, allocations: 12.3 kB / 0.5444 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.3342, allocations: 37.55 kB / 0.5445 GB, free: 12.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.375e-06/0.3342, allocations: 0 / 0.5445 GB, free: 12.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009377/0.3351, allocations: 397.1 kB / 0.5449 GB, free: 12.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.3352, allocations: 157.6 kB / 0.545 GB, free: 12.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004087/0.3356, allocations: 320.1 kB / 0.5453 GB, free: 12.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.985e-05/0.3357, allocations: 42.95 kB / 0.5454 GB, free: 12.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002086/0.3359, allocations: 264.5 kB / 0.5456 GB, free: 11.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.063e-05/0.336, allocations: 96.31 kB / 0.5457 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.3362, allocations: 104.2 kB / 0.5458 GB, free: 11.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.3364, allocations: 350.6 kB / 0.5461 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003368/0.3367, allocations: 148 kB / 0.5463 GB, free: 11.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004298/0.3371, allocations: 259 kB / 0.5465 GB, free: 11.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006433/0.3378, allocations: 368.6 kB / 0.5469 GB, free: 10.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.726e-06/0.3378, allocations: 0 / 0.5469 GB, free: 10.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009338/0.3387, allocations: 481.3 kB / 0.5473 GB, free: 10.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.3387, allocations: 10.81 kB / 0.5473 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.3387, allocations: 3.375 kB / 0.5473 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.3388, allocations: 5.625 kB / 0.5473 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.339, allocations: 70.8 kB / 0.5474 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.3391, allocations: 9.297 kB / 0.5474 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003192/0.3394, allocations: 57.73 kB / 0.5475 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.934e-05/0.3394, allocations: 24.08 kB / 0.5475 GB, free: 10.48 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.0002535/0.3397, allocations: 200.4 kB / 0.5477 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.3398, allocations: 39.89 kB / 0.5477 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.682e-05/0.3399, allocations: 39.73 kB / 0.5478 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3399, allocations: 3.906 kB / 0.5478 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.3399, allocations: 1.344 kB / 0.5478 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.3399, allocations: 5.359 kB / 0.5478 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001734/0.3416, allocations: 1.184 MB / 0.5489 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3416, allocations: 3.094 kB / 0.5489 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.3419, allocations: 49.75 kB / 0.549 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/0.3419, allocations: 8.312 kB / 0.549 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.893e-05/0.3419, allocations: 12.41 kB / 0.549 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.3419, allocations: 4.25 kB / 0.549 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3419, allocations: 6.75 kB / 0.549 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008967/0.3428, allocations: 0.5551 MB / 0.5496 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.3429, allocations: 65.17 kB / 0.5496 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.263e-05/0.343, allocations: 21.8 kB / 0.5496 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.3432, allocations: 16.55 kB / 0.5497 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.274e-05/0.3433, allocations: 26.95 kB / 0.5497 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.3433, allocations: 13.19 kB / 0.5497 GB, free: 8.723 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002309/0.3435, allocations: 212.8 kB / 0.5499 GB, free: 8.586 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3435, allocations: 4 kB / 0.5499 GB, free: 8.582 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004399/0.344, allocations: 110.1 kB / 0.55 GB, free: 8.547 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.001286/0.3453, allocations: 1.131 MB / 0.5511 GB, free: 7.582 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007822/0.346, allocations: 333.2 kB / 0.5514 GB, free: 7.438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.346, allocations: 0 / 0.5514 GB, free: 7.438 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003372/0.3464, allocations: 149.8 kB / 0.5516 GB, free: 7.371 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006271/0.347, allocations: 91.44 kB / 0.5517 GB, free: 7.328 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005342/0.3523, allocations: 3.648 MB / 0.5552 GB, free: 4.602 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.3528, allocations: 0.8313 MB / 0.556 GB, free: 3.836 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002287/0.353, allocations: 64.53 kB / 0.5561 GB, free: 3.801 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.3533, allocations: 154.1 kB / 0.5562 GB, free: 3.676 MB / 398.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3533, allocations: 4 kB / 0.5562 GB, free: 3.672 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.3847, allocations: 7.78 MB / 0.5638 GB, free: 13.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.03, allocations: 12.06 kB / 0.5639 GB, free: 13.37 MB / 414.1 MB " [Timeout remaining time 648] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.906106482958421] Failed to read output from testmodel.py, exit status != 0: 12.200577571056783 12.229430898 11.897533939 Calling exit ...