Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/package.mo", uses=false) 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.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_BusinessSimulation.Examples.AssemblyLine") translateModel(BusinessSimulation.Examples.AssemblyLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.AssemblyLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 112.7 kB / 16.42 MB, free: 6.512 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.001839/0.001839, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.412/1.412, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1869/0.1869, allocations: 31.13 MB / 322.3 MB, free: 64 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 67.91 kB / 447.4 MB, free: 1.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1139, allocations: 56.36 MB / 0.4919 GB, free: 9.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.AssemblyLine): time 0.2646/0.3786, allocations: 9.72 MB / 0.5014 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003752/0.3824, allocations: 1.419 MB / 0.5028 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008354/0.3833, allocations: 31.94 kB / 0.5028 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000563/0.3838, allocations: 219.9 kB / 0.503 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005361/0.3844, allocations: 167.8 kB / 0.5032 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.3858, allocations: 479.1 kB / 0.5036 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001479/0.3872, allocations: 1.239 MB / 0.5048 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007199/0.388, allocations: 473 kB / 0.5053 GB, free: 5.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000759/0.3887, allocations: 454 kB / 0.5057 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005165/0.3893, allocations: 466.3 kB / 0.5062 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.3895, allocations: 108.8 kB / 0.5063 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002219/0.3897, allocations: 119.9 kB / 0.5064 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001965/0.3899, allocations: 226.9 kB / 0.5066 GB, free: 5.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004449/0.3903, allocations: 0.5122 MB / 0.5071 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001199/0.3915, allocations: 1.052 MB / 0.5081 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3916, allocations: 0.7969 kB / 0.5081 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3916, allocations: 3.625 kB / 0.5081 GB, free: 4.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.83e-05/0.3916, allocations: 1.219 kB / 0.5081 GB, free: 4.789 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.002201/0.3938, allocations: 1.268 MB / 0.5094 GB, free: 4.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.3939, allocations: 8.969 kB / 0.5094 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005548/0.3944, allocations: 141.4 kB / 0.5095 GB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009575/0.3954, allocations: 0.5957 MB / 0.5101 GB, free: 3.742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.444e-05/0.3955, allocations: 93.69 kB / 0.5102 GB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000208/0.3957, allocations: 111.3 kB / 0.5103 GB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002066/0.3978, allocations: 0.9361 MB / 0.5112 GB, free: 3.484 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/0.3978, allocations: 4 kB / 0.5112 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.3979, allocations: 41.53 kB / 0.5113 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.804e-05/0.398, allocations: 22.09 kB / 0.5113 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/0.3997, allocations: 0.5437 MB / 0.5118 GB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006724/0.4064, allocations: 3.233 MB / 0.515 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.4077, allocations: 0.5278 MB / 0.5155 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00069/0.4084, allocations: 379.4 kB / 0.5158 GB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.341e-05/0.4084, allocations: 8.75 kB / 0.5159 GB, free: 1.477 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001069/0.4095, allocations: 0.6564 MB / 0.5165 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of pre-optimization done (n=75): time 3.998e-06/0.4095, allocations: 0 / 0.5165 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.002533/0.4121, allocations: 0.9451 MB / 0.5174 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005083/0.4126, allocations: 0.8804 MB / 0.5183 GB, free: 15.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.4139, allocations: 0.5622 MB / 0.5188 GB, free: 15.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002498/0.4142, allocations: 78.06 kB / 0.5189 GB, free: 15.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005675/0.4148, allocations: 413.6 kB / 0.5193 GB, free: 14.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003033/0.4151, allocations: 204.6 kB / 0.5195 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004673/0.4156, allocations: 236 kB / 0.5197 GB, free: 14.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00038/0.416, allocations: 394.1 kB / 0.5201 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.4171, allocations: 308.1 kB / 0.5204 GB, free: 14.15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.4186, allocations: 0.5467 MB / 0.5209 GB, free: 13.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002299/0.4209, allocations: 0.9314 MB / 0.5218 GB, free: 13.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.4209, allocations: 2.5 kB / 0.5218 GB, free: 13.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.00364/0.4246, allocations: 1.037 MB / 0.5228 GB, free: 12.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.646e-05/0.4247, allocations: 74.22 kB / 0.5229 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-05/0.4247, allocations: 4.562 kB / 0.5229 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.166e-05/0.4248, allocations: 10.75 kB / 0.5229 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.4258, allocations: 145.5 kB / 0.5231 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.312e-05/0.4259, allocations: 19.36 kB / 0.5231 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.4275, allocations: 171.4 kB / 0.5233 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.4276, allocations: 42.53 kB / 0.5233 GB, free: 12.39 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.00113/0.4288, allocations: 401.7 kB / 0.5237 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002562/0.4291, allocations: 80.2 kB / 0.5238 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002154/0.4293, allocations: 67.75 kB / 0.5238 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.705e-05/0.4293, allocations: 5.453 kB / 0.5238 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.523e-06/0.4293, allocations: 1.438 kB / 0.5238 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005369/0.4299, allocations: 221 kB / 0.524 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002149/0.4301, allocations: 28.5 kB / 0.5241 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000794/0.4309, allocations: 69.36 kB / 0.5241 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/0.4312, allocations: 72.39 kB / 0.5242 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00375/0.435, allocations: 1.795 MB / 0.5259 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004239/0.4393, allocations: 2.044 MB / 0.5279 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001633/0.4409, allocations: 0.8345 MB / 0.5288 GB, free: 8.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009435/0.4419, allocations: 365.9 kB / 0.5291 GB, free: 8.422 MB / 398.1 MB Notification: Performance of Backend: time 8.82e-07/0.4419, allocations: 0 / 0.5291 GB, free: 8.422 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004742/0.4467, allocations: 0.8288 MB / 0.5299 GB, free: 8.004 MB / 398.1 MB Notification: Performance of SimCode: time 0.003503/0.4502, allocations: 1.876 MB / 0.5318 GB, free: 6.715 MB / 398.1 MB Notification: Performance of Templates: time 0.02917/0.4794, allocations: 14.53 MB / 0.5459 GB, free: 15.41 MB / 414.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.AssemblyLine.makefile (rm -f BusinessSimulation_BusinessSimulation.Examples.AssemblyLine.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.AssemblyLine.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.AssemblyLine.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.AssemblyLine.sim & ./BusinessSimulation_BusinessSimulation.Examples.AssemblyLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.AssemblyLine.pipe 2>&1)