Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.AssemblyLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.AssemblyLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.AssemblyLine") translateModel(BusinessSimulation.Examples.AssemblyLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.AssemblyLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 112.3 kB / 16.42 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 188.3 kB / 17.35 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.167/0.167, allocations: 31.17 MB / 322.4 MB, free: 192 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 67.88 kB / 447.4 MB, free: 1.785 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09414/0.09537, allocations: 56.36 MB / 0.4919 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.AssemblyLine): time 0.213/0.3084, allocations: 9.725 MB / 0.5014 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002916/0.3113, allocations: 1.414 MB / 0.5028 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005985/0.3119, allocations: 34.56 kB / 0.5029 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004426/0.3124, allocations: 218.6 kB / 0.5031 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003787/0.3128, allocations: 165.8 kB / 0.5032 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000899/0.3137, allocations: 482.3 kB / 0.5037 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.3147, allocations: 1.237 MB / 0.5049 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005712/0.3153, allocations: 471.1 kB / 0.5053 GB, free: 5.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004404/0.3158, allocations: 456.3 kB / 0.5058 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003893/0.3162, allocations: 460.4 kB / 0.5062 GB, free: 5.168 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.3163, allocations: 109.9 kB / 0.5063 GB, free: 5.168 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.3165, allocations: 119.8 kB / 0.5064 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.3167, allocations: 232.6 kB / 0.5067 GB, free: 5.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003943/0.3171, allocations: 0.5146 MB / 0.5072 GB, free: 4.977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.3181, allocations: 1.057 MB / 0.5082 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3181, allocations: 0 / 0.5082 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3181, allocations: 3.469 kB / 0.5082 GB, free: 4.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.3182, allocations: 0 / 0.5082 GB, free: 4.785 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.00191/0.3201, allocations: 1.298 MB / 0.5095 GB, free: 4.055 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.3201, allocations: 12.47 kB / 0.5095 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004825/0.3206, allocations: 145.6 kB / 0.5096 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008121/0.3214, allocations: 0.5939 MB / 0.5102 GB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.587e-05/0.3215, allocations: 90.19 kB / 0.5103 GB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.3217, allocations: 114.3 kB / 0.5104 GB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.3231, allocations: 0.9375 MB / 0.5113 GB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/0.3231, allocations: 1.5 kB / 0.5113 GB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.395e-05/0.3232, allocations: 41.53 kB / 0.5113 GB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.3232, allocations: 25.38 kB / 0.5114 GB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.3244, allocations: 0.5442 MB / 0.5119 GB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003736/0.3281, allocations: 3.246 MB / 0.5151 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006935/0.3289, allocations: 0.5256 MB / 0.5156 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004235/0.3293, allocations: 380.2 kB / 0.5159 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.3293, allocations: 10.34 kB / 0.516 GB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006324/0.33, allocations: 0.647 MB / 0.5166 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of pre-optimization done (n=75): time 2.395e-06/0.33, allocations: 4 kB / 0.5166 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.001455/0.3314, allocations: 0.9499 MB / 0.5175 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002811/0.3317, allocations: 0.8814 MB / 0.5184 GB, free: 15.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007308/0.3325, allocations: 0.5594 MB / 0.5189 GB, free: 15.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.3326, allocations: 81.22 kB / 0.519 GB, free: 15.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002949/0.3329, allocations: 423.1 kB / 0.5194 GB, free: 14.81 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.3331, allocations: 214.9 kB / 0.5196 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002943/0.3334, allocations: 237.7 kB / 0.5198 GB, free: 14.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.3335, allocations: 387.8 kB / 0.5202 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006901/0.3342, allocations: 308.9 kB / 0.5205 GB, free: 14.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008448/0.3351, allocations: 0.5456 MB / 0.521 GB, free: 13.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.3364, allocations: 0.9312 MB / 0.5219 GB, free: 12.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3364, allocations: 6.125 kB / 0.522 GB, free: 12.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001902/0.3383, allocations: 1.051 MB / 0.523 GB, free: 12.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.915e-05/0.3384, allocations: 63.56 kB / 0.523 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.3384, allocations: 6.391 kB / 0.523 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.3384, allocations: 11.06 kB / 0.5231 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005296/0.339, allocations: 148.4 kB / 0.5232 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.937e-05/0.339, allocations: 15.55 kB / 0.5232 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000763/0.3398, allocations: 170.8 kB / 0.5234 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.416e-05/0.3398, allocations: 43.5 kB / 0.5234 GB, free: 12.33 MB / 398.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: $PRE.machine1.inflow.stopOutflow = true $PRE.machine2.inflow.stopOutflow = true. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 112 ($PRE.beingReleased.cloud.massPort.stopInflow,$PRE.beingReleased.cloud.massPort.stopOutflow,$PRE.incomingStore.inflow.stopInflow,$PRE.incomingStore.outflow.stopInflow,$PRE.machine1.inflow.stopOutflow,$PRE.intermediateStore.inflow.stopInflow,$PRE.intermediateStore.outflow.stopInflow,$PRE.machine2.inflow.stopOutflow,$PRE.outgoingInventory.inflow.stopInflow,$PRE.outgoingInventory.outflow.stopInflow,$PRE.movingOn.inflow.stopInflow,$PRE.movingOn.inflow.stopOutflow,outgoingInventory.outflow.stopOutflow,$PRE.outgoingInventory.outflow.stopOutflow,outgoingInventory.inflow.stopOutflow,$PRE.outgoingInventory.inflow.stopOutflow,movingOn.inflow.stopOutflow,movingOn.inflow.stopInflow,outgoingInventory.outflow.stopInflow,outgoingInventory.inflow.stopInflow,intermediateStore.inflow.stopInflow,incomingStore.inflow.stopInflow,beingReleased.cloud.massPort.stopOutflow,machine2.inflow.stopOutflow,intermediateStore.outflow.stopInflow,machine1.inflow.stopOutflow,incomingStore.outflow.stopInflow,beingReleased.cloud.massPort.stopInflow,beingReleased.growing.portB.stopInflow,loading2.useB_rate,$PRE.loading2.useB_rate,loading2.useA_rate,$PRE.loading2.useA_rate,loading2.portB.stopInflow,loading2.portA.stopOutflow,machine2.fixedUnloadingTime,$PRE.machine2.fixedUnloadingTime,machine2.fixedMaxLoadingTime,$PRE.machine2.fixedMaxLoadingTime,machine2.fixedSetupTime,$PRE.machine2.fixedSetupTime,machine2.fixedLoadingTime,$PRE.machine2.fixedLoadingTime,machine2.fixedProcessingTime,$PRE.machine2.fixedProcessingTime,machine2.nextStartLoading,$PRE.machine2.nextStartLoading,machine2.lastStartTime,$PRE.machine2.lastStartTime,machine2.lastStartLoading,$PRE.machine2.lastStartLoading,machine2.latestStartTime,$PRE.machine2.latestStartTime,machine2.outflow.data,$PRE.machine2.outflow.data,machine2.inflow.stopInflow,$PRE.machine2.inflow.stopInflow,intermediateStore.outflow.stopOutflow,$PRE.intermediateStore.outflow.stopOutflow,intermediateStore.inflow.stopOutflow,$PRE.intermediateStore.inflow.stopOutflow,loading1.useB_rate,$PRE.loading1.useB_rate,loading1.useA_rate,$PRE.loading1.useA_rate,loading1.portB.stopInflow,loading1.portA.stopOutflow,machine1.fixedUnloadingTime,$PRE.machine1.fixedUnloadingTime,machine1.fixedMaxLoadingTime,$PRE.machine1.fixedMaxLoadingTime,machine1.fixedSetupTime,$PRE.machine1.fixedSetupTime,machine1.fixedLoadingTime,$PRE.machine1.fixedLoadingTime,machine1.fixedProcessingTime,$PRE.machine1.fixedProcessingTime,machine1.nextStartLoading,$PRE.machine1.nextStartLoading,machine1.lastStartTime,$PRE.machine1.lastStartTime,machine1.lastStartLoading,$PRE.machine1.lastStartLoading,machine1.latestStartTime,$PRE.machine1.latestStartTime,machine1.outflow.data,$PRE.machine1.outflow.data,machine1.inflow.stopInflow,$PRE.machine1.inflow.stopInflow,incomingStore.outflow.stopOutflow,$PRE.incomingStore.outflow.stopOutflow,incomingStore.inflow.stopOutflow,$PRE.incomingStore.inflow.stopOutflow,beingReleased.growing.useB_rate,$PRE.beingReleased.growing.useB_rate,beingReleased.growing.useA_rate,$PRE.beingReleased.growing.useA_rate,beingReleased.growing.portB.stopOutflow,beingReleased.growing.portA.stopOutflow,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loading2.portB.stopOutflow,loading2.portA.stopInflow,loading1.portB.stopOutflow,loading1.portA.stopInflow,beingReleased.growing.portA.stopInflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 2 * 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.0005305/0.3404, allocations: 401.6 kB / 0.5238 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.3405, allocations: 84.94 kB / 0.5239 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.3407, allocations: 68.12 kB / 0.5239 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.3407, allocations: 5.328 kB / 0.524 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3407, allocations: 2.344 kB / 0.524 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002652/0.341, allocations: 220.5 kB / 0.5242 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.3411, allocations: 33.97 kB / 0.5242 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004482/0.3415, allocations: 73.3 kB / 0.5243 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.3417, allocations: 62.95 kB / 0.5243 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002036/0.3438, allocations: 1.8 MB / 0.5261 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002408/0.3462, allocations: 2.04 MB / 0.5281 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009195/0.3471, allocations: 0.8353 MB / 0.5289 GB, free: 8.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005865/0.3477, allocations: 365.6 kB / 0.5292 GB, free: 8.352 MB / 398.1 MB Notification: Performance of Backend: time 5.61e-07/0.3477, allocations: 0 / 0.5292 GB, free: 8.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002386/0.3501, allocations: 0.8299 MB / 0.5301 GB, free: 7.934 MB / 398.1 MB Notification: Performance of SimCode: time 0.0028/0.3529, allocations: 1.912 MB / 0.5319 GB, free: 6.605 MB / 398.1 MB Notification: Performance of Templates: time 0.02435/0.3773, allocations: 14.51 MB / 0.5461 GB, free: 15.29 MB / 414.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.AssemblyLine.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.AssemblyLine.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.AssemblyLine.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.AssemblyLine.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.AssemblyLine.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.AssemblyLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.AssemblyLine.pipe 2>&1)